Struct mavlink::MavFrame [−][src]
pub struct MavFrame<M: Message> {
pub header: MavHeader,
pub msg: M,
pub protocol_version: MavlinkVersion,
}
Expand description
Encapsulation of the Mavlink message and the header, important to preserve information about the sender system and component id
Fields
header: MavHeader
msg: M
protocol_version: MavlinkVersion
Implementations
Create a new frame with given message Serialize MavFrame into a vector, so it can be sent over a socket, for example.
Deserialize MavFrame from a slice that has been received from, for example, a socket.
Trait Implementations
Auto Trait Implementations
impl<M> RefUnwindSafe for MavFrame<M> where
M: RefUnwindSafe,
impl<M> UnwindSafe for MavFrame<M> where
M: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more