pub struct CloseFrame {
pub code: u16,
pub reason: String,
}Expand description
The status code and reason carried by a websocket close frame.
Fields§
§code: u16The RFC 6455 close code.
reason: StringThe peer’s reason, empty when it sent none.
Trait Implementations§
Source§impl Clone for CloseFrame
impl Clone for CloseFrame
Source§impl Debug for CloseFrame
impl Debug for CloseFrame
impl Eq for CloseFrame
Source§impl PartialEq for CloseFrame
impl PartialEq for CloseFrame
impl StructuralPartialEq for CloseFrame
Auto Trait Implementations§
impl Forget for CloseFrame
impl Freeze for CloseFrame
impl Move for CloseFrame
impl RefUnwindSafe for CloseFrame
impl Send for CloseFramewhere
RawVecInner: Send,
impl Sync for CloseFramewhere
RawVecInner: Sync,
impl Unpin for CloseFrame
impl UnsafeUnpin for CloseFrame
impl UnwindSafe for CloseFramewhere
RawVecInner: UnwindSafe,
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