Skip to main content

Owner

Trait Owner 

Source
pub trait Owner:
    Access
    + Close<State: Unmap>
    + Sized {
    type Registered: Registered<Token = Self::Token, State: Unmap<Error = <Self::State as Unmap>::Error>>;
    type Registration: Registration;
    type Closing: Closed<Target = Self::Target>;

    // Required methods
    fn try_register(self) -> Result<Self::Registered, Self::Registration>;
    fn close_file(self, file: Self::File) -> Result<(), Self::Closing>;
}
Expand description

Ring registration and failed fixed-file cleanup retain the complete owner.

Required Associated Types§

Source

type Registered: Registered<Token = Self::Token, State: Unmap<Error = <Self::State as Unmap>::Error>>

Source

type Registration: Registration

Source

type Closing: Closed<Target = Self::Target>

Required Methods§

Source

fn try_register(self) -> Result<Self::Registered, Self::Registration>

Source

fn close_file(self, file: Self::File) -> Result<(), Self::Closing>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§