Skip to main content

Permit

Type Alias Permit 

Source
pub type Permit = Box<dyn Any + Send>;
Expand description

An opaque reservation handle minted by Metering::reserve and consumed by Metering::open of the SAME implementation. The server carries it between the two calls without looking inside; dropping it un-consumed must release whatever it holds (the reference implementation refunds on drop).

Aliased Typeยง

pub struct Permit(/* private fields */);