pub struct NodeTcpConfig<'a, A> {
pub addr: &'a str,
pub authenticator: A,
pub max_size: u32,
pub min_idle: Option<u32>,
pub max_lifetime: Option<Duration>,
pub idle_timeout: Option<Duration>,
pub connection_timeout: Duration,
}
Expand description
Single node TCP connection config.
Fields§
§addr: &'a str
§authenticator: A
§max_size: u32
§min_idle: Option<u32>
§max_lifetime: Option<Duration>
§idle_timeout: Option<Duration>
§connection_timeout: Duration
Trait Implementations§
Source§impl<'a, A: Clone> Clone for NodeTcpConfig<'a, A>
impl<'a, A: Clone> Clone for NodeTcpConfig<'a, A>
Source§fn clone(&self) -> NodeTcpConfig<'a, A>
fn clone(&self) -> NodeTcpConfig<'a, A>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<'a, A> Freeze for NodeTcpConfig<'a, A>where
A: Freeze,
impl<'a, A> RefUnwindSafe for NodeTcpConfig<'a, A>where
A: RefUnwindSafe,
impl<'a, A> Send for NodeTcpConfig<'a, A>where
A: Send,
impl<'a, A> Sync for NodeTcpConfig<'a, A>where
A: Sync,
impl<'a, A> Unpin for NodeTcpConfig<'a, A>where
A: Unpin,
impl<'a, A> UnwindSafe for NodeTcpConfig<'a, A>where
A: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more