Trait quinn_proto::ConnectionIdParser

source ·
pub trait ConnectionIdParser {
    // Required method
    fn parse(
        &self,
        buf: &mut dyn Buf,
    ) -> Result<ConnectionId, PacketDecodeError>;
}
Expand description

Parse connection id in short header packet

Required Methods§

source

fn parse(&self, buf: &mut dyn Buf) -> Result<ConnectionId, PacketDecodeError>

Parse a connection id from given buffer

Implementors§