iroh_quinn_proto

Trait 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§