Struct soketto::connection::CloseReason
source · Expand description
Reason for closing the connection.
Fields§
§code: u16
§descr: Option<String>
Trait Implementations§
source§impl Clone for CloseReason
impl Clone for CloseReason
source§fn clone(&self) -> CloseReason
fn clone(&self) -> CloseReason
Returns a copy 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 CloseReason
impl Debug for CloseReason
source§impl Hash for CloseReason
impl Hash for CloseReason
source§impl Ord for CloseReason
impl Ord for CloseReason
source§fn cmp(&self, other: &CloseReason) -> Ordering
fn cmp(&self, other: &CloseReason) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<CloseReason> for CloseReason
impl PartialEq<CloseReason> for CloseReason
source§fn eq(&self, other: &CloseReason) -> bool
fn eq(&self, other: &CloseReason) -> bool
source§impl PartialOrd<CloseReason> for CloseReason
impl PartialOrd<CloseReason> for CloseReason
source§fn partial_cmp(&self, other: &CloseReason) -> Option<Ordering>
fn partial_cmp(&self, other: &CloseReason) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more