pub struct WebSocketRouteCloseOptions {
pub code: Option<u16>,
pub reason: Option<String>,
}Expand description
Options for WebSocketRoute::close.
Fields§
§code: Option<u16>WebSocket close code (e.g. 1000 for normal closure).
reason: Option<String>Human-readable close reason.
Trait Implementations§
Source§impl Clone for WebSocketRouteCloseOptions
impl Clone for WebSocketRouteCloseOptions
Source§fn clone(&self) -> WebSocketRouteCloseOptions
fn clone(&self) -> WebSocketRouteCloseOptions
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 WebSocketRouteCloseOptions
impl Debug for WebSocketRouteCloseOptions
Source§impl Default for WebSocketRouteCloseOptions
impl Default for WebSocketRouteCloseOptions
Source§fn default() -> WebSocketRouteCloseOptions
fn default() -> WebSocketRouteCloseOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WebSocketRouteCloseOptions
impl RefUnwindSafe for WebSocketRouteCloseOptions
impl Send for WebSocketRouteCloseOptions
impl Sync for WebSocketRouteCloseOptions
impl Unpin for WebSocketRouteCloseOptions
impl UnsafeUnpin for WebSocketRouteCloseOptions
impl UnwindSafe for WebSocketRouteCloseOptions
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