pub struct WebSocketCloseFrame {
pub code: u16,
pub reason: String,
}
Expand description
WebSocket close frame
Fieldsยง
ยงcode: u16
ยงreason: String
Trait Implementationsยง
Sourceยงimpl Clone for WebSocketCloseFrame
impl Clone for WebSocketCloseFrame
Sourceยงfn clone(&self) -> WebSocketCloseFrame
fn clone(&self) -> WebSocketCloseFrame
Returns a duplicate 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 moreAuto Trait Implementationsยง
impl Freeze for WebSocketCloseFrame
impl RefUnwindSafe for WebSocketCloseFrame
impl Send for WebSocketCloseFrame
impl Sync for WebSocketCloseFrame
impl Unpin for WebSocketCloseFrame
impl UnwindSafe for WebSocketCloseFrame
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