pub struct OwnedCloseFrame {
pub code: CloseCode,
pub reason: String,
}Expand description
Owned close frame.
Fields§
§code: CloseCodeThe close status code.
reason: StringUTF-8 reason string.
Trait Implementations§
Source§impl Clone for OwnedCloseFrame
impl Clone for OwnedCloseFrame
Source§fn clone(&self) -> OwnedCloseFrame
fn clone(&self) -> OwnedCloseFrame
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 Freeze for OwnedCloseFrame
impl RefUnwindSafe for OwnedCloseFrame
impl Send for OwnedCloseFrame
impl Sync for OwnedCloseFrame
impl Unpin for OwnedCloseFrame
impl UnsafeUnpin for OwnedCloseFrame
impl UnwindSafe for OwnedCloseFrame
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