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§
Sourcefn parse(&self, buf: &mut dyn Buf) -> Result<ConnectionId, PacketDecodeError>
fn parse(&self, buf: &mut dyn Buf) -> Result<ConnectionId, PacketDecodeError>
Parse a connection id from given buffer