#[non_exhaustive]pub struct RouteRefusals {
pub path: u64,
pub scope: u64,
pub looped: u64,
}Expand description
Refused routes and claims by reason.
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.path: u64It names a path this node cannot hold.
scope: u64It lies outside the session’s root or grant, or what the origin serves.
looped: u64Its way already crosses this relay, or more relays than the hop limit allows.
Implementations§
Source§impl RouteRefusals
impl RouteRefusals
Sourcepub fn count(&self, kind: RouteRefusal) -> u64
pub fn count(&self, kind: RouteRefusal) -> u64
The cumulative count for this kind.
Trait Implementations§
Source§impl Clone for RouteRefusals
impl Clone for RouteRefusals
impl Copy for RouteRefusals
Source§impl Debug for RouteRefusals
impl Debug for RouteRefusals
Source§impl Default for RouteRefusals
impl Default for RouteRefusals
Source§impl<'de> Deserialize<'de> for RouteRefusalswhere
RouteRefusals: Default,
impl<'de> Deserialize<'de> for RouteRefusalswhere
RouteRefusals: 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 RouteRefusals
Source§impl PartialEq for RouteRefusals
impl PartialEq for RouteRefusals
Source§impl Serialize for RouteRefusals
impl Serialize for RouteRefusals
impl StructuralPartialEq for RouteRefusals
Auto Trait Implementations§
impl Freeze for RouteRefusals
impl RefUnwindSafe for RouteRefusals
impl Send for RouteRefusals
impl Sync for RouteRefusals
impl Unpin for RouteRefusals
impl UnsafeUnpin for RouteRefusals
impl UnwindSafe for RouteRefusals
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.