Skip to main content

Access

Trait Access 

Source
pub trait Access {
    type Token;
    type Target;
    type File: Occupied<Target = Self::Target>;
    type Queue<'a>: Queue<'a, Self::Token>
       where Self: 'a,
             Self::Token: Token;
    type Enter<'a>: Enter
       where Self: 'a;
    type Registry<'a>: Registry<Token = Self::Token, Target = Self::Target, File = Self::File>
       where Self: 'a;

    // Required methods
    fn sq(&mut self) -> Self::Queue<'_>
       where Self::Token: Token;
    fn enter(&mut self) -> Self::Enter<'_>;
    fn registry(&mut self) -> Self::Registry<'_>;
}
Expand description

Exclusive queue and registration views borrow the same native owner.

Required Associated Types§

Source

type Token

Source

type Target

Source

type File: Occupied<Target = Self::Target>

Source

type Queue<'a>: Queue<'a, Self::Token>
where Self: 'a, Self::Token: Token,

Source

type Enter<'a>: Enter
where Self: 'a,

Source

type Registry<'a>: Registry<Token = Self::Token, Target = Self::Target, File = Self::File>
where Self: 'a,

Required Methods§

Source

fn sq(&mut self) -> Self::Queue<'_>
where Self::Token: Token,

Source

fn enter(&mut self) -> Self::Enter<'_>

Source

fn registry(&mut self) -> Self::Registry<'_>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§