#[non_exhaustive]pub enum RouteRefusal {
Path,
Scope,
Looped,
}Expand description
Why this node refused a route or claim a peer forwarded, keeping the session.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Path
It names a path this node cannot hold.
Scope
It lies outside the session’s root or grant, or what the origin serves.
Looped
Its way already crosses this relay, or more relays than the hop limit allows.
Implementations§
Trait Implementations§
Source§impl Clone for RouteRefusal
impl Clone for RouteRefusal
impl Copy for RouteRefusal
Source§impl Debug for RouteRefusal
impl Debug for RouteRefusal
impl Eq for RouteRefusal
Source§impl PartialEq for RouteRefusal
impl PartialEq for RouteRefusal
impl StructuralPartialEq for RouteRefusal
Auto Trait Implementations§
impl Freeze for RouteRefusal
impl RefUnwindSafe for RouteRefusal
impl Send for RouteRefusal
impl Sync for RouteRefusal
impl Unpin for RouteRefusal
impl UnsafeUnpin for RouteRefusal
impl UnwindSafe for RouteRefusal
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.