pub struct CloseFrame {
pub code: u16,
pub reason: Utf8Bytes,
}
Expand description
A struct representing the close command.
Fields§
§code: u16
The reason as a code.
reason: Utf8Bytes
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 PartialEq for CloseFrame
impl PartialEq 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