[−][src]Struct tower_load::peak_ewma::PeakEwmaDiscover
Wraps a D
-typed stream of discovery updates with PeakEwma
.
Methods
impl<D, I> PeakEwmaDiscover<D, I>
[src]
pub fn new<Request>(
discover: D,
default_rtt: Duration,
decay: Duration,
instrument: I
) -> Self where
D: Discover,
D::Service: Service<Request>,
I: Instrument<Handle, <D::Service as Service<Request>>::Response>,
[src]
discover: D,
default_rtt: Duration,
decay: Duration,
instrument: I
) -> Self where
D: Discover,
D::Service: Service<Request>,
I: Instrument<Handle, <D::Service as Service<Request>>::Response>,
Wraps a D
-typed Discover
so that services have a PeakEwma
load metric.
The provided default_rtt
is used as the default RTT estimate for newly
added services.
They decay
value determines over what time period a RTT estimate should
decay.
Trait Implementations
impl<D, I> Unpin for PeakEwmaDiscover<D, I> where
__UnpinStructPeakEwmaDiscover<D, I>: Unpin,
[src]
__UnpinStructPeakEwmaDiscover<D, I>: Unpin,
impl<D, I> Discover for PeakEwmaDiscover<D, I> where
D: Discover,
I: Clone,
[src]
D: Discover,
I: Clone,
Auto Trait Implementations
impl<D, I> Sync for PeakEwmaDiscover<D, I> where
D: Sync,
I: Sync,
D: Sync,
I: Sync,
impl<D, I> Send for PeakEwmaDiscover<D, I> where
D: Send,
I: Send,
D: Send,
I: Send,
impl<D, I> UnwindSafe for PeakEwmaDiscover<D, I> where
D: UnwindSafe,
I: UnwindSafe,
D: UnwindSafe,
I: UnwindSafe,
impl<D, I> RefUnwindSafe for PeakEwmaDiscover<D, I> where
D: RefUnwindSafe,
I: RefUnwindSafe,
D: RefUnwindSafe,
I: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,