pub struct TransportCloseRequest {
pub code: u16,
pub reason: String,
}Expand description
Close code and reason requested by the client.
Fields§
§code: u16WebSocket close code to send.
reason: StringClose reason to send.
Implementations§
Trait Implementations§
Source§impl Clone for TransportCloseRequest
impl Clone for TransportCloseRequest
Source§fn clone(&self) -> TransportCloseRequest
fn clone(&self) -> TransportCloseRequest
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 moreSource§impl Debug for TransportCloseRequest
impl Debug for TransportCloseRequest
Source§impl PartialEq for TransportCloseRequest
impl PartialEq for TransportCloseRequest
Source§fn eq(&self, other: &TransportCloseRequest) -> bool
fn eq(&self, other: &TransportCloseRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TransportCloseRequest
impl StructuralPartialEq for TransportCloseRequest
Auto Trait Implementations§
impl Freeze for TransportCloseRequest
impl RefUnwindSafe for TransportCloseRequest
impl Send for TransportCloseRequest
impl Sync for TransportCloseRequest
impl Unpin for TransportCloseRequest
impl UnsafeUnpin for TransportCloseRequest
impl UnwindSafe for TransportCloseRequest
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