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