pub struct ConfigBuilder { /* private fields */ }Expand description
Ping configuration builder.
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn with_max_failure(self, max_failures: usize) -> Self
pub fn with_max_failure(self, max_failures: usize) -> Self
Set maximum failures the protocol.
Sourcepub fn with_ping_interval(self, ping_interval: Duration) -> Self
pub fn with_ping_interval(self, ping_interval: Duration) -> Self
Set ping interval.
The default is 5 seconds and should be kept like this for compatibility with litep2p <= v0.13.0.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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