pub struct WsCloseReason {
pub code: CloseCode,
pub message: String,
}Expand description
连接关闭原因。
Fields§
§code: CloseCodeWebSocket 关闭码。
message: String关闭原因文案。
Trait Implementations§
Source§impl Clone for WsCloseReason
impl Clone for WsCloseReason
Source§fn clone(&self) -> WsCloseReason
fn clone(&self) -> WsCloseReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WsCloseReason
impl RefUnwindSafe for WsCloseReason
impl Send for WsCloseReason
impl Sync for WsCloseReason
impl Unpin for WsCloseReason
impl UnsafeUnpin 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