[−][src]Function mqtt4bytes::check
pub fn check(
stream: &mut BytesMut,
max_packet_size: usize
) -> Result<FixedHeader, Error>
Checks if the stream has enough bytes to frame a packet and returns fixed header
pub fn check(
stream: &mut BytesMut,
max_packet_size: usize
) -> Result<FixedHeader, Error>
Checks if the stream has enough bytes to frame a packet and returns fixed header