pub struct CloseFrame {
pub code: u16,
pub reason: String,
}
Fields§
§code: u16
The reason as a code.
reason: String
The reason as text string.
Trait Implementations§
Source§impl Clone for CloseFrame
impl Clone for CloseFrame
Source§fn clone(&self) -> CloseFrame
fn clone(&self) -> CloseFrame
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 CloseFrame
impl Debug for CloseFrame
Source§impl From<CloseFrame> for CloseFrame
impl From<CloseFrame> for CloseFrame
Source§fn from(frame: CloseFrame) -> Self
fn from(frame: CloseFrame) -> Self
Converts to this type from the input type.
Source§impl From<CloseFrame> for CloseFrame
impl From<CloseFrame> for CloseFrame
Source§fn from(frame: TungsteniteCloseFrame) -> Self
fn from(frame: TungsteniteCloseFrame) -> Self
Converts to this type from the input type.
Source§impl Hash for CloseFrame
impl Hash for CloseFrame
Source§impl Ord for CloseFrame
impl Ord for CloseFrame
Source§fn cmp(&self, other: &CloseFrame) -> Ordering
fn cmp(&self, other: &CloseFrame) -> 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 CloseFrame
impl PartialEq for CloseFrame
Source§impl PartialOrd for CloseFrame
impl PartialOrd for CloseFrame
impl Eq for CloseFrame
impl StructuralPartialEq for CloseFrame
Auto Trait Implementations§
impl Freeze for CloseFrame
impl RefUnwindSafe for CloseFrame
impl Send for CloseFrame
impl Sync for CloseFrame
impl Unpin for CloseFrame
impl UnwindSafe for CloseFrame
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