Struct ratchet_rs::CloseReason
source · [−]Expand description
A reason for closing the WebSocket connection.
Fields
code: CloseCode
The code to close the connection with.
description: Option<String>
An optional message to close the connection with.
Implementations
sourceimpl CloseReason
impl CloseReason
Trait Implementations
sourceimpl Clone for CloseReason
impl Clone for CloseReason
sourcefn clone(&self) -> CloseReason
fn clone(&self) -> CloseReason
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CloseReason
impl Debug for CloseReason
sourceimpl PartialEq<CloseReason> for CloseReason
impl PartialEq<CloseReason> for CloseReason
sourcefn eq(&self, other: &CloseReason) -> bool
fn eq(&self, other: &CloseReason) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CloseReason) -> bool
fn ne(&self, other: &CloseReason) -> bool
This method tests for !=
.
impl StructuralPartialEq for CloseReason
Auto Trait Implementations
impl RefUnwindSafe for CloseReason
impl Send for CloseReason
impl Sync for CloseReason
impl Unpin for CloseReason
impl UnwindSafe for CloseReason
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more