#[non_exhaustive]pub struct RouteCloses {
pub stalled: u64,
pub overrun: u64,
pub malformed: u64,
pub role: u64,
pub unasked: u64,
pub other: u64,
}Expand description
Sessions closed for their route layer, by kind.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.stalled: u64The peer stopped reading its route stream.
overrun: u64The peer read its route stream too slowly for what changed.
malformed: u64The peer sent a route, claim, request, or prefix the rule never builds, or broke its route stream.
role: u64The peer sent what its role never sends, such as a routing peer asking for part of the tree.
unasked: u64The peer’s stream fell out of step: a claim outside what was asked, or under a route it never offered.
other: u64Any other reason, such as the peer announcing past the session’s cap.
Implementations§
Source§impl RouteCloses
impl RouteCloses
Sourcepub fn count(&self, kind: RouteClose) -> u64
pub fn count(&self, kind: RouteClose) -> u64
The cumulative count for this kind.
Trait Implementations§
Source§impl Clone for RouteCloses
impl Clone for RouteCloses
impl Copy for RouteCloses
Source§impl Debug for RouteCloses
impl Debug for RouteCloses
Source§impl Default for RouteCloses
impl Default for RouteCloses
Source§impl<'de> Deserialize<'de> for RouteCloseswhere
RouteCloses: Default,
impl<'de> Deserialize<'de> for RouteCloseswhere
RouteCloses: Default,
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 RouteCloses
Source§impl PartialEq for RouteCloses
impl PartialEq for RouteCloses
Source§impl Serialize for RouteCloses
impl Serialize for RouteCloses
impl StructuralPartialEq for RouteCloses
Auto Trait Implementations§
impl Freeze for RouteCloses
impl RefUnwindSafe for RouteCloses
impl Send for RouteCloses
impl Sync for RouteCloses
impl Unpin for RouteCloses
impl UnsafeUnpin for RouteCloses
impl UnwindSafe for RouteCloses
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.