read_raw_versioned_msg_async_signed

Function read_raw_versioned_msg_async_signed 

Source
pub async fn read_raw_versioned_msg_async_signed<M, R>(
    r: &mut AsyncPeekReader<R>,
    version: ReadVersion,
    signing_data: Option<&SigningData>,
) -> Result<MAVLinkMessageRaw, MessageReadError>
where M: Message, R: AsyncRead + Unpin,
Expand description

Asynchronously read and parse a MAVLinkMessageRaw of the specified version from a AsyncPeekReader with signing support.

When using ReadVersion::Single(MavlinkVersion::V1) signing is ignored. When using ReadVersion::Any MAVlink 1 messages are treated as unsigned.