pub struct SocketCloseOptions {
pub code: u16,
pub reason: String,
}Available on crate features
realtime or responses-ws only.Expand description
表示关闭 WebSocket 时附带的参数。
Fields§
§code: u16WebSocket close code。
reason: String关闭原因。
Trait Implementations§
Source§impl Clone for SocketCloseOptions
impl Clone for SocketCloseOptions
Source§fn clone(&self) -> SocketCloseOptions
fn clone(&self) -> SocketCloseOptions
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 moreSource§impl Debug for SocketCloseOptions
impl Debug for SocketCloseOptions
Auto Trait Implementations§
impl Freeze for SocketCloseOptions
impl RefUnwindSafe for SocketCloseOptions
impl Send for SocketCloseOptions
impl Sync for SocketCloseOptions
impl Unpin for SocketCloseOptions
impl UnsafeUnpin for SocketCloseOptions
impl UnwindSafe for SocketCloseOptions
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