pub struct WebSocketCloseFrame {
pub code: WebSocketCloseCode,
pub reason: String,
}Expand description
Re-exported public API.
Public Caelix type WebSocketCloseFrame.
Fields§
§code: WebSocketCloseCodeThe code value.
reason: StringThe reason value.
Implementations§
Source§impl WebSocketCloseFrame
impl WebSocketCloseFrame
Sourcepub fn new(code: WebSocketCloseCode, reason: impl Into<String>) -> Self
pub fn new(code: WebSocketCloseCode, reason: impl Into<String>) -> Self
Runs the new public API operation.
Trait Implementations§
Source§impl Clone for WebSocketCloseFrame
impl Clone for WebSocketCloseFrame
Source§fn clone(&self) -> WebSocketCloseFrame
fn clone(&self) -> WebSocketCloseFrame
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 WebSocketCloseFrame
impl Debug for WebSocketCloseFrame
impl Eq for WebSocketCloseFrame
Source§impl PartialEq for WebSocketCloseFrame
impl PartialEq for WebSocketCloseFrame
impl StructuralPartialEq for WebSocketCloseFrame
Auto Trait Implementations§
impl Freeze for WebSocketCloseFrame
impl RefUnwindSafe for WebSocketCloseFrame
impl Send for WebSocketCloseFrame
impl Sync for WebSocketCloseFrame
impl Unpin for WebSocketCloseFrame
impl UnsafeUnpin for WebSocketCloseFrame
impl UnwindSafe for WebSocketCloseFrame
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