#[repr(u32)]pub enum GoAwayCode {
Normal = 0,
ProtocolError = 1,
InternalError = 2,
}Expand description
When a session is being terminated, the Go Away message should be sent. The Length should be set to one of the following to provide an error code:
Variants§
Trait Implementations§
Source§impl Clone for GoAwayCode
impl Clone for GoAwayCode
Source§fn clone(&self) -> GoAwayCode
fn clone(&self) -> GoAwayCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GoAwayCode
impl Debug for GoAwayCode
Source§impl From<u32> for GoAwayCode
impl From<u32> for GoAwayCode
Source§fn from(value: u32) -> GoAwayCode
fn from(value: u32) -> GoAwayCode
Converts to this type from the input type.
Source§impl PartialEq for GoAwayCode
impl PartialEq for GoAwayCode
impl Copy for GoAwayCode
impl Eq for GoAwayCode
impl StructuralPartialEq for GoAwayCode
Auto Trait Implementations§
impl Freeze for GoAwayCode
impl RefUnwindSafe for GoAwayCode
impl Send for GoAwayCode
impl Sync for GoAwayCode
impl Unpin for GoAwayCode
impl UnwindSafe for GoAwayCode
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