Struct gjio::Network
[−]
[src]
pub struct Network { /* fields omitted */ }
Mediates the creation of async-enabled sockets.
It is good practice to limit the use of this struct to high-level startup code and user interaction.
Methods
impl Network
[src]
fn get_tcp_address(&self, addr: SocketAddr) -> SocketAddress
fn wrap_std_tcp_stream(&self, stream: TcpStream) -> Result<SocketStream, Error>
Transforms the std::net::TcpStream
into a SocketStream
.
Trait Implementations
impl Clone for Network
[src]
fn clone(&self) -> Network
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more