pub trait Reserve<'a, C: Context, B: 'a>: Submission {
// Required method
fn try_new(
backend: &'a mut B,
key: C::Key,
pending: bool,
) -> Result<Self, Error<<<C as Context>::Native as Native>::Error<<C as Context>::Failure>>>;
// Provided method
fn try_at(
backend: &'a mut B,
key: C::Key,
pending: bool,
_slot: &<C::Inputs as Context>::Target,
) -> Result<Self, Error<<<C as Context>::Native as Native>::Error<<C as Context>::Failure>>> { ... }
}Expand description
Binds the exact host key and pending state before reserving native capacity.
Descriptor-local admission also retains the slot’s matching operation when its native requests use a descriptor-local token.
Required Methods§
fn try_new( backend: &'a mut B, key: C::Key, pending: bool, ) -> Result<Self, Error<<<C as Context>::Native as Native>::Error<<C as Context>::Failure>>>
Provided Methods§
Sourcefn try_at(
backend: &'a mut B,
key: C::Key,
pending: bool,
_slot: &<C::Inputs as Context>::Target,
) -> Result<Self, Error<<<C as Context>::Native as Native>::Error<<C as Context>::Failure>>>
fn try_at( backend: &'a mut B, key: C::Key, pending: bool, _slot: &<C::Inputs as Context>::Target, ) -> Result<Self, Error<<<C as Context>::Native as Native>::Error<<C as Context>::Failure>>>
Binds a descriptor-local cancellation to its exact flight identity. The caller retains its descriptor and target on every admission outcome.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".