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 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 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 for CloseReason
impl PartialEq for CloseReason
Source§impl PartialOrd for CloseReason
impl PartialOrd for CloseReason
impl Eq for CloseReason
impl StructuralPartialEq for CloseReason
Auto Trait Implementations§
impl Freeze for CloseReason
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