Skip to main content

read_packet_id

Function read_packet_id 

Source
pub fn read_packet_id(buf: &mut impl Buf) -> Result<i32, ProtocolError>
Expand description

Read a packet ID from frame data.

ยงErrors

Returns ProtocolError if the packet ID VarInt is malformed.