Skip to main content

Admit

Trait Admit 

Source
pub trait Admit<C: Context>: Sized {
    type Admission<'a>: Guard<C> + Retain<C>
       where Self: 'a;

    // Required method
    fn try_admit(&mut self) -> Result<Self::Admission<'_>, Full>;
}
Expand description

Reserves native capacity without consuming the host’s operation ownership.

Required Associated Types§

Source

type Admission<'a>: Guard<C> + Retain<C>
where Self: 'a,

Required Methods§

Source

fn try_admit(&mut self) -> Result<Self::Admission<'_>, Full>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§