pub struct CloseData {
pub code: u16,
pub reason: String,
}
Expand description
a close message, with a websocket close code https://www.iana.org/assignments/websocket/websocket.xml#close-code-number
Fields§
§code: u16
§reason: String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CloseData
impl RefUnwindSafe for CloseData
impl Send for CloseData
impl Sync for CloseData
impl Unpin for CloseData
impl UnwindSafe for CloseData
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