Function sage_mqtt::codec::read_binary_data[][src]

pub async fn read_binary_data<R: AsyncRead + Unpin>(
    reader: &mut R
) -> SageResult<Vec<u8>>
Expand description

Read from the given reader for binary dataset according to Binary Data type MQTT5 specifications which consists in an two bytes integer representing the data size in bytes followed with the data as bytes. In case of success, returns a Vec<u8>