Skip to main content

Permit

Type Alias Permit 

Source
pub(super) type Permit = Permit<Box<dyn Fn(u64) -> Result + Send + Sync>>;
Expand description

Permit guarding one dispatched global sequence number.

The permit exposes the allocated number and retires it on drop. Retirement advances in dispatch order even when later permits finish first.

Aliased Typeยง

pub(super) struct Permit { /* private fields */ }