pub trait ProviderContextPin:
Send
+ Sync
+ Debug {
// Required method
fn context(&self) -> ProviderContextIdentity;
}Expand description
A live claim on a provider/context.
Dropping the value releases the claim, so implementations carry the
bookkeeping in Drop rather than in an explicit method. Nothing about the
pin is inspectable beyond the identity it belongs to: a holder must not be
able to extend, transfer, or interrogate the context through it.
Required Methods§
Sourcefn context(&self) -> ProviderContextIdentity
fn context(&self) -> ProviderContextIdentity
Which context this pin holds.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".