Struct soketto::connection::CloseReason
source · pub struct CloseReason {
pub code: u16,
pub descr: Option<String>,
}
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
This method tests for
self
and other
values to be equal, and is used
by ==
.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 moreimpl Eq for CloseReason
impl StructuralEq for CloseReason
impl StructuralPartialEq for CloseReason
Auto Trait Implementations§
impl RefUnwindSafe for CloseReason
impl Send for CloseReason
impl Sync for CloseReason
impl Unpin for CloseReason
impl UnwindSafe for CloseReason
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