#[repr(u16)]pub enum CloseCauseTag {
CleanDeregister = 1,
ConnectionLost = 2,
ProcessKilled = 3,
ProtocolError = 4,
Superseded = 5,
ServerShutdown = 6,
UncleanServerRestart = 7,
}Expand description
Binding close-cause tag registry.
Variants§
CleanDeregister = 1
Clean deregistration.
ConnectionLost = 2
Transport connection was lost.
ProcessKilled = 3
Participant process was killed.
ProtocolError = 4
Participant protocol error.
Superseded = 5
Binding was superseded.
ServerShutdown = 6
Server performed an orderly shutdown.
UncleanServerRestart = 7
Binding was recovered after an unclean server restart.
Implementations§
Source§impl CloseCauseTag
impl CloseCauseTag
Sourcepub const fn wire_value(self) -> u16
pub const fn wire_value(self) -> u16
Returns the stable v1 wire value.
Trait Implementations§
Source§impl Clone for CloseCauseTag
impl Clone for CloseCauseTag
Source§fn clone(&self) -> CloseCauseTag
fn clone(&self) -> CloseCauseTag
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 CloseCauseTag
Source§impl Debug for CloseCauseTag
impl Debug for CloseCauseTag
impl Eq for CloseCauseTag
Source§impl From<CloseCauseTag> for u16
impl From<CloseCauseTag> for u16
Source§fn from(value: CloseCauseTag) -> Self
fn from(value: CloseCauseTag) -> Self
Converts to this type from the input type.
Source§impl Hash for CloseCauseTag
impl Hash for CloseCauseTag
Source§impl PartialEq for CloseCauseTag
impl PartialEq for CloseCauseTag
impl StructuralPartialEq for CloseCauseTag
Auto Trait Implementations§
impl Freeze for CloseCauseTag
impl RefUnwindSafe for CloseCauseTag
impl Send for CloseCauseTag
impl Sync for CloseCauseTag
impl Unpin for CloseCauseTag
impl UnsafeUnpin for CloseCauseTag
impl UnwindSafe for CloseCauseTag
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