pub struct ClosePayload {
pub code: CloseCode,
pub reason: String,
}Expand description
Close-Frame Payload (Code + optional Reason).
Fields§
§code: CloseCodeStatus-Code.
reason: StringUTF-8-Reason (max 123 Bytes — Spec §5.5.1).
Trait Implementations§
Source§impl Clone for ClosePayload
impl Clone for ClosePayload
Source§fn clone(&self) -> ClosePayload
fn clone(&self) -> ClosePayload
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 ClosePayload
impl Debug for ClosePayload
Source§impl PartialEq for ClosePayload
impl PartialEq for ClosePayload
Source§fn eq(&self, other: &ClosePayload) -> bool
fn eq(&self, other: &ClosePayload) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ClosePayload
impl StructuralPartialEq for ClosePayload
Auto Trait Implementations§
impl Freeze for ClosePayload
impl RefUnwindSafe for ClosePayload
impl Send for ClosePayload
impl Sync for ClosePayload
impl Unpin for ClosePayload
impl UnsafeUnpin for ClosePayload
impl UnwindSafe for ClosePayload
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