pub struct ProberConfig {
pub interval: Duration,
pub recheck_threshold: Duration,
}Expand description
Configuration for the probing mechanism
Fields§
§interval: DurationThe delay between individual probing rounds for neighbor discovery
recheck_threshold: DurationThe time threshold after which it is reasonable to recheck the nearest neighbor
Trait Implementations§
Source§impl Clone for ProberConfig
impl Clone for ProberConfig
Source§fn clone(&self) -> ProberConfig
fn clone(&self) -> ProberConfig
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 moreSource§impl Debug for ProberConfig
impl Debug for ProberConfig
Source§impl Default for ProberConfig
impl Default for ProberConfig
Source§impl PartialEq for ProberConfig
impl PartialEq for ProberConfig
Source§impl<'v_a> ValidateArgs<'v_a> for ProberConfig
impl<'v_a> ValidateArgs<'v_a> for ProberConfig
impl Copy for ProberConfig
impl StructuralPartialEq for ProberConfig
Auto Trait Implementations§
impl Freeze for ProberConfig
impl RefUnwindSafe for ProberConfig
impl Send for ProberConfig
impl Sync for ProberConfig
impl Unpin for ProberConfig
impl UnwindSafe for ProberConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more