pub trait TcpSplittableConnection {
type Error: Error;
type Read<'a>: Read<Error = Self::Error>
where Self: 'a;
type Write<'a>: Write<Error = Self::Error>
where Self: 'a;
// Required method
async fn split(
&mut self,
) -> Result<(Self::Read<'_>, Self::Write<'_>), Self::Error>;
}
Required Associated Types§
type Error: Error
type Read<'a>: Read<Error = Self::Error> where Self: 'a
type Write<'a>: Write<Error = Self::Error> where Self: 'a
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.