pub struct WsCloseReason {
pub code: CloseCode,
pub message: String,
}Expand description
Connection close reason
Fields§
§code: CloseCodeClose code
message: StringReason string
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WsCloseReason
impl RefUnwindSafe for WsCloseReason
impl Send for WsCloseReason
impl Sync for WsCloseReason
impl Unpin for WsCloseReason
impl UnwindSafe for WsCloseReason
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