pub trait Direct: Session {
type Empty: Empty<Direct = Self>;
// Required methods
fn option(
self,
probe: Self::Probe,
) -> Result<Self, Stopped<State<Self, <Self as Session>::Pending>, Cause<<Self as Session>::Probe, <<Self as Session>::Outcome as Outcome>::Observation, <Self as Session>::Error>>>;
fn close(
self,
probe: Self::Probe,
) -> Result<Self::Empty, Stopped<Self, Cause<<Self as Session>::Probe, <<Self as Session>::Outcome as Outcome>::Observation, <Self as Session>::Error>>>;
}Required Associated Types§
Required Methods§
fn option( self, probe: Self::Probe, ) -> Result<Self, Stopped<State<Self, <Self as Session>::Pending>, Cause<<Self as Session>::Probe, <<Self as Session>::Outcome as Outcome>::Observation, <Self as Session>::Error>>>
fn close( self, probe: Self::Probe, ) -> Result<Self::Empty, Stopped<Self, Cause<<Self as Session>::Probe, <<Self as Session>::Outcome as Outcome>::Observation, <Self as Session>::Error>>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".