#[non_exhaustive]pub enum RouteCloseReason {
Reload,
Restart,
AuthorityChanged,
Disable,
Crash,
CapabilityDenied,
ScopeEnded,
ScopeCarrierRemoved,
ScopeDelegationChanged,
ScopeParentEnded,
Unknown(String),
}Expand description
A route-close reason accepted from the daemon control-push wire.
The protocol may add reasons before this SDK is upgraded. Preserve that fact
as Self::Unknown and classify it conservatively rather than refusing to
deliver the enclosing control push.
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.
Reload
Restart
AuthorityChanged
Disable
Crash
CapabilityDenied
ScopeEnded
ScopeCarrierRemoved
ScopeDelegationChanged
ScopeParentEnded
Unknown(String)
Implementations§
Source§impl RouteCloseReason
impl RouteCloseReason
Sourcepub fn from_wire(reason: &str) -> Self
pub fn from_wire(reason: &str) -> Self
Decode a wire reason without making a new daemon reason fatal to push delivery.
Sourcepub fn disposition(&self) -> RouteCloseDisposition
pub fn disposition(&self) -> RouteCloseDisposition
Unknown reasons take the strictest action: never reopen on their behalf.
Trait Implementations§
Source§impl Clone for RouteCloseReason
impl Clone for RouteCloseReason
Source§impl Debug for RouteCloseReason
impl Debug for RouteCloseReason
impl Eq for RouteCloseReason
Source§impl PartialEq for RouteCloseReason
impl PartialEq for RouteCloseReason
impl StructuralPartialEq for RouteCloseReason
Auto Trait Implementations§
impl Forget for RouteCloseReason
impl Freeze for RouteCloseReason
impl Move for RouteCloseReason
impl RefUnwindSafe for RouteCloseReason
impl Send for RouteCloseReason
impl Sync for RouteCloseReason
impl Unpin for RouteCloseReason
impl UnsafeUnpin for RouteCloseReason
impl UnwindSafe for RouteCloseReason
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