Trait tungstenite::handshake::machine::TryParse

source ·
pub trait TryParse: Sized {
    // Required method
    fn try_parse(data: &[u8]) -> Result<Option<(usize, Self)>>;
}
Expand description

The parseable object.

Required Methods§

source

fn try_parse(data: &[u8]) -> Result<Option<(usize, Self)>>

Return Ok(None) if incomplete, Err on syntax error.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TryParse for HeaderMap

source§

fn try_parse(buf: &[u8]) -> Result<Option<(usize, Self)>>

Implementors§