Struct bitformat::WebSocketFrame[][src]

pub struct WebSocketFrame<'a> {
    pub frame_len: u8,
    pub is_payload_masked: bool,
    pub payload_length: PayloadLength,
    pub format_style: FormatStyle,
    // some fields omitted
}

Fields

frame_len: u8is_payload_masked: boolpayload_length: PayloadLengthformat_style: FormatStyle

Implementations

impl<'a> WebSocketFrame<'a>[src]

pub fn from_bytes(data: &Vec<u8>) -> WebSocketFrame<'_>[src]

Builds a websocket frame from a byte array

Arguments

  • data - The byte array to convert to a WebSocketFrame.

pub fn format(self: &WebSocketFrame<'a>) -> String[src]

Formats the websocket frame.

Arguments

  • self - The WebSocketFrame being formatted.

Auto Trait Implementations

impl<'a> RefUnwindSafe for WebSocketFrame<'a>

impl<'a> Send for WebSocketFrame<'a>

impl<'a> Sync for WebSocketFrame<'a>

impl<'a> Unpin for WebSocketFrame<'a>

impl<'a> UnwindSafe for WebSocketFrame<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.