Trait web_socket::CloseReason
source · pub trait CloseReason {
type Bytes;
// Required method
fn to_bytes(self) -> Self::Bytes;
}
Expand description
This trait is responsible for encoding websocket closed frame.
pub trait CloseReason {
type Bytes;
// Required method
fn to_bytes(self) -> Self::Bytes;
}
This trait is responsible for encoding websocket closed frame.