Struct libp2p_swarm::handler::OneShotHandlerConfig
source · pub struct OneShotHandlerConfig {
pub outbound_substream_timeout: Duration,
pub max_dial_negotiated: u32,
}
Expand description
Configuration parameters for the OneShotHandler
Fields§
§outbound_substream_timeout: Duration
Timeout for outbound substream upgrades.
max_dial_negotiated: u32
Maximum number of concurrent outbound substreams being opened.
Trait Implementations§
source§impl Debug for OneShotHandlerConfig
impl Debug for OneShotHandlerConfig
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§
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