pub struct FallbackEntry {
pub rank: u32,
pub target: RoutingTarget,
pub weight: u32,
}Expand description
One entry in an ordered fallback chain.
Fields§
§rank: u32Lower rank = higher priority. Entries at the same rank compete by weight.
target: RoutingTargetThe target to route to when this entry is selected.
weight: u32Weight among healthy entries sharing the same rank.
Trait Implementations§
Source§impl Clone for FallbackEntry
impl Clone for FallbackEntry
Source§fn clone(&self) -> FallbackEntry
fn clone(&self) -> FallbackEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FallbackEntry
impl Debug for FallbackEntry
Source§impl<'de> Deserialize<'de> for FallbackEntry
impl<'de> Deserialize<'de> for FallbackEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FallbackEntry
Source§impl PartialEq for FallbackEntry
impl PartialEq for FallbackEntry
Source§impl Serialize for FallbackEntry
impl Serialize for FallbackEntry
impl StructuralPartialEq for FallbackEntry
Auto Trait Implementations§
impl Freeze for FallbackEntry
impl RefUnwindSafe for FallbackEntry
impl Send for FallbackEntry
impl Sync for FallbackEntry
impl Unpin for FallbackEntry
impl UnsafeUnpin for FallbackEntry
impl UnwindSafe for FallbackEntry
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