Struct netcore::transport::tcp::TcpTransport [−][src]
Expand description
Transport to build TCP connections
Fields
ttl: Option<u32>TTL to set for opened sockets, or None to keep default.
nodelay: Option<bool>TCP_NODELAY to set for opened sockets, or None to keep default.
Trait Implementations
Returns the “default value” for a type. Read more
type Listener = TcpListenerStream
type Listener = TcpListenerStream
type Outbound = TcpOutbound
type Outbound = TcpOutbound
fn listen_on(
&self,
addr: NetworkAddress
) -> Result<(Self::Listener, NetworkAddress), Self::Error>
fn listen_on(
&self,
addr: NetworkAddress
) -> Result<(Self::Listener, NetworkAddress), Self::Error>
Listens on the given NetworkAddress, returning a stream of incoming connections. Read more
Dials the given NetworkAddress, returning a future for a pending outbound connection.
Auto Trait Implementations
impl RefUnwindSafe for TcpTransport
impl Send for TcpTransport
impl Sync for TcpTransport
impl Unpin for TcpTransport
impl UnwindSafe for TcpTransport
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self