pub struct ScoreBased {
pub threshold: f32,
pub stale_timeout: Duration,
}Fields§
§threshold: f32§stale_timeout: DurationImplementations§
Source§impl ScoreBased
impl ScoreBased
pub fn new() -> Self
pub fn with_threshold(self, threshold: f32) -> Self
pub fn with_stale_timeout(self, timeout: Duration) -> Self
Trait Implementations§
Source§impl Default for ScoreBased
impl Default for ScoreBased
Source§impl LoadBalanceStrategy for ScoreBased
impl LoadBalanceStrategy for ScoreBased
Auto Trait Implementations§
impl Freeze for ScoreBased
impl RefUnwindSafe for ScoreBased
impl Send for ScoreBased
impl Sync for ScoreBased
impl Unpin for ScoreBased
impl UnsafeUnpin for ScoreBased
impl UnwindSafe for ScoreBased
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