Function read_versioned_msg_async

Source
pub async fn read_versioned_msg_async<M: Message, R: AsyncRead + Unpin>(
    r: &mut AsyncPeekReader<R>,
    version: ReadVersion,
) -> Result<(MavHeader, M), MessageReadError>
Available on crate feature tokio-1 only.
Expand description

Asynchronously read and parse a MAVLink message of the specified version from a AsyncPeekReader.