pub enum FallbackCount {
NumHosts,
None,
Count(usize),
Percentage(u8),
Infinite,
}
Expand description
FallbackCount
is the number of hosts to try to fallback to if the current host fails.
Variants§
NumHosts
Equivalent to the current number of hosts.
None
None means no fallback.
Count(usize)
A specific number of hosts to fallback to. If the number is greater than the total number of hosts, it can lead to hosts being tried multiple times.
Percentage(u8)
A percentage of the total number of hosts to fallback to. If the percentage is greater than 100, it will fallback to all hosts.
Infinite
Never stop trying to fallback. This is useful for testing purposes.
Trait Implementations§
Source§impl Default for FallbackCount
impl Default for FallbackCount
Source§fn default() -> FallbackCount
fn default() -> FallbackCount
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FallbackCount
impl RefUnwindSafe for FallbackCount
impl Send for FallbackCount
impl Sync for FallbackCount
impl Unpin for FallbackCount
impl UnwindSafe for FallbackCount
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