Struct actix_web::ws::CloseReason [−][src]
Reason for closing the connection
Fields
code: CloseCode
Exit code
description: Option<String>
Optional description of the exit code
Trait Implementations
impl Debug for CloseReason
[src]
impl Debug for CloseReason
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for CloseReason
[src]
impl Eq for CloseReason
impl PartialEq for CloseReason
[src]
impl PartialEq for CloseReason
fn eq(&self, other: &CloseReason) -> bool
[src]
fn eq(&self, other: &CloseReason) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &CloseReason) -> bool
[src]
fn ne(&self, other: &CloseReason) -> bool
This method tests for !=
.
impl Clone for CloseReason
[src]
impl Clone for CloseReason
fn clone(&self) -> CloseReason
[src]
fn clone(&self) -> CloseReason
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl From<CloseCode> for CloseReason
[src]
impl From<CloseCode> for CloseReason
impl<T: Into<String>> From<(CloseCode, T)> for CloseReason
[src]
impl<T: Into<String>> From<(CloseCode, T)> for CloseReason
Auto Trait Implementations
impl Send for CloseReason
impl Send for CloseReason
impl Sync for CloseReason
impl Sync for CloseReason