pub struct CloseMessage { /* private fields */ }Expand description
Close message
Implementations§
Source§impl CloseMessage
impl CloseMessage
Sourcepub fn close_code(&self) -> Option<CloseCode>
pub fn close_code(&self) -> Option<CloseCode>
Get the close code as CloseCode enum
Trait Implementations§
Source§impl Clone for CloseMessage
impl Clone for CloseMessage
Source§fn clone(&self) -> CloseMessage
fn clone(&self) -> CloseMessage
Returns a duplicate of the value. Read more
1.0.0 · 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 CloseMessage
impl RefUnwindSafe for CloseMessage
impl Send for CloseMessage
impl Sync for CloseMessage
impl Unpin for CloseMessage
impl UnwindSafe for CloseMessage
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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