pub trait TcpSplit: ErrorType {
type Read<'a>: Read<Error = Self::Error, Error = Self::Error> + Readable
where Self: 'a;
type Write<'a>: Write<Error = Self::Error>
where Self: 'a;
// Required method
fn split(&mut self) -> (Self::Read<'_>, Self::Write<'_>);
}Expand description
Re-export the edge-nal crate
This trait is implemented by TCP sockets that can be split into separate send and receive halves that can operate
independently from each other (i.e., a full-duplex connection).
Required Associated Types§
type Read<'a>: Read<Error = Self::Error, Error = Self::Error> + Readable 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".