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

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

Fields

Trait Implementations

impl Debug for CloseReason
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for CloseReason
[src]

impl PartialEq for CloseReason
[src]

[src]

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

[src]

This method tests for !=.

impl Clone for CloseReason
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<CloseCode> for CloseReason
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for CloseReason

impl Sync for CloseReason