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