pub struct StationRoutingBalanceSummary {
pub snapshots: usize,
pub ok: usize,
pub exhausted: usize,
pub stale: usize,
pub error: usize,
pub unknown: usize,
pub routing_snapshots: usize,
pub routing_exhausted: usize,
pub routing_ignored_exhausted: usize,
}Fields§
§snapshots: usize§ok: usize§exhausted: usize§stale: usize§error: usize§unknown: usize§routing_snapshots: usize§routing_exhausted: usize§routing_ignored_exhausted: usizeImplementations§
Source§impl StationRoutingBalanceSummary
impl StationRoutingBalanceSummary
pub fn from_snapshots(snapshots: Option<&[ProviderBalanceSnapshot]>) -> Self
pub fn from_snapshot_iter_at<'a>( snapshots: impl IntoIterator<Item = &'a ProviderBalanceSnapshot>, now_ms: u64, ) -> Self
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for StationRoutingBalanceSummary
impl Clone for StationRoutingBalanceSummary
Source§fn clone(&self) -> StationRoutingBalanceSummary
fn clone(&self) -> StationRoutingBalanceSummary
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 StationRoutingBalanceSummary
impl Debug for StationRoutingBalanceSummary
Source§impl Default for StationRoutingBalanceSummary
impl Default for StationRoutingBalanceSummary
Source§fn default() -> StationRoutingBalanceSummary
fn default() -> StationRoutingBalanceSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StationRoutingBalanceSummary
impl<'de> Deserialize<'de> for StationRoutingBalanceSummary
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
Source§impl PartialEq for StationRoutingBalanceSummary
impl PartialEq for StationRoutingBalanceSummary
Source§fn eq(&self, other: &StationRoutingBalanceSummary) -> bool
fn eq(&self, other: &StationRoutingBalanceSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StationRoutingBalanceSummary
impl StructuralPartialEq for StationRoutingBalanceSummary
Auto Trait Implementations§
impl Freeze for StationRoutingBalanceSummary
impl RefUnwindSafe for StationRoutingBalanceSummary
impl Send for StationRoutingBalanceSummary
impl Sync for StationRoutingBalanceSummary
impl Unpin for StationRoutingBalanceSummary
impl UnsafeUnpin for StationRoutingBalanceSummary
impl UnwindSafe for StationRoutingBalanceSummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.