pub struct Config {
pub listen_addresses: Vec<Multiaddr>,
pub connection_open_timeout: Duration,
pub substream_open_timeout: Duration,
}
Expand description
QUIC transport configuration.
Fields§
§listen_addresses: Vec<Multiaddr>
Listen address for the transport.
Default listen addres is /ip4/127.0.0.1/udp/0/quic-v1
.
connection_open_timeout: Duration
Connection open timeout.
How long should litep2p wait for a connection to be opend before the host is deemed unreachable.
substream_open_timeout: Duration
Substream open timeout.
How long should litep2p wait for a substream to be opened before considering the substream rejected.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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