pub trait Occupied: Session {
type Empty: Empty<Occupied = Self>;
type Target;
type Remove;
type Index;
type Length;
type Capacity;
// Required methods
fn slot(&self) -> Self::Target;
fn try_remove(self) -> Result<Self::Empty, Stopped<Self, Self::Remove>>;
fn next<E>(
waiting: Self::Pending,
check: impl FnOnce(&[u8]) -> Result<(), E>,
) -> Result<<Self as Session>::Pending, Stopped<State<Self, <Self as Session>::Pending>, Checked<<Self as Session>::Probe, <<Self as Session>::Outcome as Outcome>::Observation, <Self as Session>::Error, <Self as Occupied>::Index, <Self as Occupied>::Length, <Self as Occupied>::Capacity, E>>>;
}Required Associated Types§
type Empty: Empty<Occupied = Self>
type Target
type Remove
type Index
type Length
type Capacity
Required Methods§
fn slot(&self) -> Self::Target
fn try_remove(self) -> Result<Self::Empty, Stopped<Self, Self::Remove>>
fn next<E>( waiting: Self::Pending, check: impl FnOnce(&[u8]) -> Result<(), E>, ) -> Result<<Self as Session>::Pending, Stopped<State<Self, <Self as Session>::Pending>, Checked<<Self as Session>::Probe, <<Self as Session>::Outcome as Outcome>::Observation, <Self as Session>::Error, <Self as Occupied>::Index, <Self as Occupied>::Length, <Self as Occupied>::Capacity, E>>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".