#[non_exhaustive]pub enum RouteCloseReason {
Reload,
Restart,
AuthorityChanged,
Disable,
Crash,
CapabilityDenied,
ScopeEnded,
ScopeCarrierRemoved,
ScopeDelegationChanged,
ScopeParentEnded,
}Expand description
Why subc is closing a module’s client routes.
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
Authority changed; reopening immediately obtains the current attestation.
Disable
Crash
CapabilityDenied
A live route became forbidden because newly attested capability metadata matched its supervised opening module’s deny edge.
ScopeEnded
The route’s scope ended: it expired, its owner ended it, or replaced it
with a higher scope_epoch (a new session under the same ref).
ScopeCarrierRemoved
The route’s opener is no longer a listed carrier of its scope, or the route’s target was removed from that carrier’s target list.
ScopeDelegationChanged
The scope’s delegates went from true to false, or its agent_id,
on_behalf_of_agent, flow_id or run_id changed.
ScopeParentEnded
The scope’s parent ended, so its stamp no longer names a live parent.
Implementations§
Source§impl RouteCloseReason
impl RouteCloseReason
Sourcepub fn may_reopen(self) -> bool
pub fn may_reopen(self) -> bool
Whether an opener may immediately reopen after this close.
Trait Implementations§
Source§impl Clone for RouteCloseReason
impl Clone for RouteCloseReason
impl Copy for RouteCloseReason
Source§impl Debug for RouteCloseReason
impl Debug for RouteCloseReason
Source§impl<'de> Deserialize<'de> for RouteCloseReason
impl<'de> Deserialize<'de> for RouteCloseReason
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 RouteCloseReason
Source§impl PartialEq for RouteCloseReason
impl PartialEq for RouteCloseReason
Source§impl Serialize for RouteCloseReason
impl Serialize 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