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§
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>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".