pub struct CloseFrame {
pub code: u16,
pub reason: String,
}Available on crate feature
websocket only.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 Freeze for CloseFrame
impl RefUnwindSafe for CloseFrame
impl Send for CloseFrame
impl Sync for CloseFrame
impl Unpin for CloseFrame
impl UnsafeUnpin 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