Struct websocket::header::WebSocketAccept [] [src]

pub struct WebSocketAccept(_);

Represents a Sec-WebSocket-Accept header

Methods

impl WebSocketAccept

fn new(key: &WebSocketKey) -> WebSocketAccept

Create a new WebSocketAccept from the given WebSocketKey

fn serialize(&self) -> String

Return the Base64 encoding of this WebSocketAccept

Trait Implementations

impl Debug for WebSocketAccept

fn fmt(&self, f: &mut Formatter) -> Result

impl FromStr for WebSocketAccept

type Err = WebSocketError

fn from_str(accept: &str) -> WebSocketResult<WebSocketAccept>

impl Header for WebSocketAccept

fn header_name() -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Result<WebSocketAccept>

impl HeaderFormat for WebSocketAccept

fn fmt_header(&self, fmt: &mut Formatter) -> Result

Derived Implementations

impl Copy for WebSocketAccept

impl Clone for WebSocketAccept

fn clone(&self) -> WebSocketAccept

1.0.0fn clone_from(&mut self, source: &Self)

impl PartialEq for WebSocketAccept

fn eq(&self, __arg_0: &WebSocketAccept) -> bool

fn ne(&self, __arg_0: &WebSocketAccept) -> bool