pub enum CloseCause {
CleanDeregister,
ConnectionLost,
ProcessKilled,
ProtocolError,
Superseded,
ServerShutdown,
UncleanServerRestart {
prior_server_incarnation: u64,
},
}Expand description
Exact close cause; only unclean restart carries a suffix field.
Variants§
CleanDeregister
Clean deregistration.
ConnectionLost
Transport connection was lost.
ProcessKilled
Participant process was killed.
ProtocolError
Participant protocol error.
Superseded
Binding was superseded.
ServerShutdown
Server performed an orderly shutdown.
UncleanServerRestart
Binding was recovered after an unclean restart.
Implementations§
Source§impl CloseCause
impl CloseCause
Sourcepub const fn tag(self) -> CloseCauseTag
pub const fn tag(self) -> CloseCauseTag
Returns this cause’s exact wire tag.
Trait Implementations§
Source§impl Clone for CloseCause
impl Clone for CloseCause
Source§fn clone(&self) -> CloseCause
fn clone(&self) -> CloseCause
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CloseCause
Source§impl Debug for CloseCause
impl Debug for CloseCause
impl Eq for CloseCause
Source§impl PartialEq for CloseCause
impl PartialEq for CloseCause
impl StructuralPartialEq for CloseCause
Auto Trait Implementations§
impl Freeze for CloseCause
impl RefUnwindSafe for CloseCause
impl Send for CloseCause
impl Sync for CloseCause
impl Unpin for CloseCause
impl UnsafeUnpin for CloseCause
impl UnwindSafe for CloseCause
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