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 CloseReasonfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for CloseReason[src]
impl Eq for CloseReasonimpl PartialEq for CloseReason[src]
impl PartialEq for CloseReasonfn eq(&self, other: &CloseReason) -> bool[src]
fn eq(&self, other: &CloseReason) -> boolThis 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) -> boolThis method tests for !=.
impl Clone for CloseReason[src]
impl Clone for CloseReasonfn clone(&self) -> CloseReason[src]
fn clone(&self) -> CloseReasonReturns 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 CloseReasonimpl<T: Into<String>> From<(CloseCode, T)> for CloseReason[src]
impl<T: Into<String>> From<(CloseCode, T)> for CloseReasonAuto Trait Implementations
impl Send for CloseReason
impl Send for CloseReasonimpl Sync for CloseReason
impl Sync for CloseReason