Struct libp2p::swarm::protocols_handler::OneShotHandlerConfig
source · [−]pub struct OneShotHandlerConfig {
pub keep_alive_timeout: Duration,
pub outbound_substream_timeout: Duration,
pub max_dial_negotiated: u32,
}
Expand description
Configuration parameters for the OneShotHandler
Fields
keep_alive_timeout: Duration
Keep-alive timeout for idle connections.
outbound_substream_timeout: Duration
Timeout for outbound substream upgrades.
max_dial_negotiated: u32
Maximum number of concurrent outbound substreams being opened.
Trait Implementations
sourceimpl Debug for OneShotHandlerConfig
impl Debug for OneShotHandlerConfig
sourceimpl Default for OneShotHandlerConfig
impl Default for OneShotHandlerConfig
sourcepub fn default() -> OneShotHandlerConfig
pub fn default() -> OneShotHandlerConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for OneShotHandlerConfig
impl Send for OneShotHandlerConfig
impl Sync for OneShotHandlerConfig
impl Unpin for OneShotHandlerConfig
impl UnwindSafe for OneShotHandlerConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more