Trait internet2::transport::connect::TcpInetStream
source · pub trait TcpInetStream: Sized {
// Required methods
fn connect_inet_socket(inet_addr: InetSocketAddr) -> Result<Self, Error>;
fn accept_inet_socket(
listener: &TcpListener
) -> Result<(Self, SocketAddr), Error>;
fn join(left: Self, right: Self) -> Self;
fn split(self) -> (Self, Self);
}
Expand description
Extensions trait for simplifying TcpStream
API in working with
InetSocketAddr
sockets