pub struct Builder<M> { /* private fields */ }
Implementations§
source§impl<M: Measurement> Builder<M>
impl<M: Measurement> Builder<M>
sourcepub fn adjustment_duration(self, adjustment: Duration) -> Self
pub fn adjustment_duration(self, adjustment: Duration) -> Self
The amount of time the check will change by depending on network stability.
sourcepub fn stability_threshold(self, threshold: Duration) -> Self
pub fn stability_threshold(self, threshold: Duration) -> Self
The threshold at which the path to a node is consider unstable.
sourcepub fn interval_range(self, range: Range<Duration>) -> Self
pub fn interval_range(self, range: Range<Duration>) -> Self
The range at which continually update the nodes measurements. This a range as the time will increase/decrease in response to network stability.
§Panics
If the start of the range is greater than end of the range.
sourcepub fn subset_percentage(self, percentage: f64) -> Self
pub fn subset_percentage(self, percentage: f64) -> Self
Sets the percentage of nodes to regularly measure at random.
§Panics
If the percentage is greater than 1.0 or lower or equal to 0.0.
pub fn build(self) -> Phoenix<M>
Auto Trait Implementations§
impl<M> RefUnwindSafe for Builder<M>where
M: RefUnwindSafe,
impl<M> Send for Builder<M>where
M: Send,
impl<M> Sync for Builder<M>where
M: Sync,
impl<M> Unpin for Builder<M>where
M: Unpin,
impl<M> UnwindSafe for Builder<M>where
M: UnwindSafe,
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
§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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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 moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request