Skip to main content

Empty

Trait Empty 

Source
pub trait Empty: Session {
    type Install;
    type Direct: Direct<Empty = Self>;
    type Occupied: Occupied<Empty = Self>;

    // Required methods
    fn create(
        self,
        probe: Self::Probe,
    ) -> Result<Self::Direct, Stopped<Self, Cause<<Self as Session>::Probe, <<Self as Session>::Outcome as Outcome>::Observation, <Self as Session>::Error>>>;
    fn install(
        self,
        file: BorrowedFd<'_>,
    ) -> Result<Self::Occupied, Stopped<Self, Self::Install>>;
}

Required Associated Types§

Source

type Install

Source

type Direct: Direct<Empty = Self>

Source

type Occupied: Occupied<Empty = Self>

Required Methods§

Source

fn create( self, probe: Self::Probe, ) -> Result<Self::Direct, Stopped<Self, Cause<<Self as Session>::Probe, <<Self as Session>::Outcome as Outcome>::Observation, <Self as Session>::Error>>>

Source

fn install( self, file: BorrowedFd<'_>, ) -> Result<Self::Occupied, Stopped<Self, Self::Install>>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§