#[non_exhaustive]pub enum RouteClose {
Stalled,
Overrun,
Malformed,
Role,
Unasked,
Other,
}Expand description
Why a session closed for its route layer.
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.
Stalled
The peer stopped reading its route stream.
Overrun
The peer read its route stream too slowly for what changed.
Malformed
The peer sent a route, claim, request, or prefix the rule never builds, or broke its route stream.
Role
The peer sent what its role never sends, such as a routing peer asking for part of the tree.
Unasked
The peer’s stream fell out of step: a claim outside what was asked, or under a route it never offered.
Other
Any other reason, such as the peer announcing past the session’s cap.
Implementations§
Trait Implementations§
Source§impl Clone for RouteClose
impl Clone for RouteClose
impl Copy for RouteClose
Source§impl Debug for RouteClose
impl Debug for RouteClose
impl Eq for RouteClose
Source§impl PartialEq for RouteClose
impl PartialEq for RouteClose
impl StructuralPartialEq for RouteClose
Auto Trait Implementations§
impl Freeze for RouteClose
impl RefUnwindSafe for RouteClose
impl Send for RouteClose
impl Sync for RouteClose
impl Unpin for RouteClose
impl UnsafeUnpin for RouteClose
impl UnwindSafe for RouteClose
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.