pub trait Socket: Debug {
type ReadHalf: ReadHalf;
type WriteHalf: WriteHalf;
// Required method
fn split(self) -> (Self::ReadHalf, Self::WriteHalf);
}
Expand description
The socket trait.
This is the trait that needs to be implemented for a type to be used as a socket/transport.