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