mavlink_core

Function read_versioned_msg_async

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