pub struct CloseFrame { /* private fields */ }Expand description
Validated outbound close frame with a UTF-8 reason of at most 123 bytes.
Debug reports the close code and reason byte count without exposing the reason text.
Implementations§
Trait Implementations§
Source§impl Clone for CloseFrame
impl Clone for CloseFrame
Auto Trait Implementations§
impl Forget for CloseFrame
impl Freeze for CloseFrame
impl Move for CloseFrame
impl RefUnwindSafe for CloseFrame
impl Send for CloseFrame
impl Sync for CloseFrame
impl Unpin for CloseFrame
impl UnsafeUnpin for CloseFrame
impl UnwindSafe for CloseFrame
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