pub struct CloseFrame<'a> {
pub code: CloseCode,
pub reason: &'a str,
}Expand description
Parsed close frame: status code + UTF-8 reason.
Fields§
§code: CloseCodeThe close status code.
reason: &'a strUTF-8 reason string (validated, may be empty).
Trait Implementations§
Source§impl<'a> Clone for CloseFrame<'a>
impl<'a> Clone for CloseFrame<'a>
Source§fn clone(&self) -> CloseFrame<'a>
fn clone(&self) -> CloseFrame<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for CloseFrame<'a>
impl<'a> RefUnwindSafe for CloseFrame<'a>
impl<'a> Send for CloseFrame<'a>
impl<'a> Sync for CloseFrame<'a>
impl<'a> Unpin for CloseFrame<'a>
impl<'a> UnsafeUnpin for CloseFrame<'a>
impl<'a> UnwindSafe for CloseFrame<'a>
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