Struct actix_web::ws::CloseReason[][src]

pub struct CloseReason {
    pub code: CloseCode,
    pub description: Option<String>,
}

Reason for closing the connection

Fields

Exit code

Optional description of the exit code

Trait Implementations

impl Debug for CloseReason
[src]

Formats the value using the given formatter. Read more

impl Eq for CloseReason
[src]

impl PartialEq for CloseReason
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for CloseReason
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<CloseCode> for CloseReason
[src]

Performs the conversion.

impl<T: Into<String>> From<(CloseCode, T)> for CloseReason
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for CloseReason

impl Sync for CloseReason