Struct netcore::transport::tcp::TcpTransport
source · pub struct TcpTransport {
pub ttl: Option<u32>,
pub nodelay: Option<bool>,
}
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§
source§impl Clone for TcpTransport
impl Clone for TcpTransport
source§fn clone(&self) -> TcpTransport
fn clone(&self) -> TcpTransport
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TcpTransport
impl Debug for TcpTransport
source§impl Default for TcpTransport
impl Default for TcpTransport
source§fn default() -> TcpTransport
fn default() -> TcpTransport
Returns the “default value” for a type. Read more
source§impl Transport for TcpTransport
impl Transport for TcpTransport
§type Listener = TcpListenerStream
type Listener = TcpListenerStream
§type Outbound = TcpOutbound
type Outbound = TcpOutbound
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§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> TransportExt for Twhere
T: Transport + ?Sized,
impl<T> TransportExt for Twhere T: Transport + ?Sized,
source§fn boxed(self) -> BoxedTransport<Self::Output, Self::Error>where
Self: Sized + Send + 'static,
Self::Listener: Send + 'static,
Self::Inbound: Send + 'static,
Self::Outbound: Send + 'static,
fn boxed(self) -> BoxedTransport<Self::Output, Self::Error>where Self: Sized + Send + 'static, Self::Listener: Send + 'static, Self::Inbound: Send + 'static, Self::Outbound: Send + 'static,
Turns a
Transport
into an abstract boxed transport.source§fn and_then<F, Fut, O>(self, f: F) -> AndThen<Self, F>where
Self: Sized,
F: FnOnce(Self::Output, NetworkAddress, ConnectionOrigin) -> Fut + Clone,
Fut: Future<Output = Result<O, Self::Error>>,
fn and_then<F, Fut, O>(self, f: F) -> AndThen<Self, F>where Self: Sized, F: FnOnce(Self::Output, NetworkAddress, ConnectionOrigin) -> Fut + Clone, Fut: Future<Output = Result<O, Self::Error>>,
Applies a function producing an asynchronous result to every connection
created by this transport. Read more