pub struct WebSocketCloseMetadata {
pub code: u16,
pub reason: String,
pub was_clean: bool,
pub will_reconnect: bool,
}Expand description
Close-frame metadata.
Fields§
§code: u16RFC 6455 close code, or 1006 for an abnormal loss without a frame.
reason: StringPeer-provided UTF-8 reason. Avoid logging this application-controlled text.
was_clean: boolWhether the browser/transport observed a clean close handshake.
will_reconnect: boolWhether another connection attempt has been scheduled.
Trait Implementations§
Source§impl Clone for WebSocketCloseMetadata
impl Clone for WebSocketCloseMetadata
Source§fn clone(&self) -> WebSocketCloseMetadata
fn clone(&self) -> WebSocketCloseMetadata
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 WebSocketCloseMetadata
impl Debug for WebSocketCloseMetadata
impl Eq for WebSocketCloseMetadata
Source§impl PartialEq for WebSocketCloseMetadata
impl PartialEq for WebSocketCloseMetadata
impl StructuralPartialEq for WebSocketCloseMetadata
Auto Trait Implementations§
impl Freeze for WebSocketCloseMetadata
impl RefUnwindSafe for WebSocketCloseMetadata
impl Send for WebSocketCloseMetadata
impl Sync for WebSocketCloseMetadata
impl Unpin for WebSocketCloseMetadata
impl UnsafeUnpin for WebSocketCloseMetadata
impl UnwindSafe for WebSocketCloseMetadata
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