Struct trillium_tokio::ClientConfig
source · [−]pub struct ClientConfig {
pub nodelay: Option<bool>,
pub ttl: Option<u32>,
pub linger: Option<Duration>,
}
Expand description
configuration for the tcp Connector
Fields
nodelay: Option<bool>
disable nagle’s algorithm
see [TcpStream::set_nodelay
] for more info
ttl: Option<u32>
time to live for the tcp protocol. set [TcpStream::set_ttl
] for more info
linger: Option<Duration>
sets SO_LINGER. I don’t really understand this, but see
[TcpStream::set_linger
] for more info
Trait Implementations
sourceimpl Clone for ClientConfig
impl Clone for ClientConfig
sourcefn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ClientConfig
impl Debug for ClientConfig
sourceimpl Default for ClientConfig
impl Default for ClientConfig
sourcefn default() -> ClientConfig
fn default() -> ClientConfig
Returns the “default value” for a type. Read more
impl Copy for ClientConfig
Auto Trait Implementations
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnwindSafe for ClientConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> CompatExt for T
impl<T> CompatExt for T
fn compat_ref(&self) -> Compat<&T>
fn compat_ref(&self) -> Compat<&T>
Applies the [
Compat
] adapter by shared reference. Read morefn compat_mut(&mut self) -> Compat<&mut T>
fn compat_mut(&mut self) -> Compat<&mut T>
Applies the [
Compat
] adapter by mutable reference. Read more