Struct websocket::message::CloseData [] [src]

pub struct CloseData {
    pub status_code: u16,
    pub reason: String,
}

Represents data contained in a Close message

Fields

The status-code of the CloseData

The reason-phrase of the CloseData

Methods

impl CloseData
[src]

[src]

Create a new CloseData object

[src]

Convert this into a vector of bytes

Trait Implementations

impl Eq for CloseData
[src]

impl PartialEq for CloseData
[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 CloseData
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for CloseData
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for CloseData

impl Sync for CloseData