pub trait Message: MessageSpec + IntoPayload { }Expand description
mavspec
MAVLink message implementation.
Concrete MAVLink message that knows its specs through MessageSpec and allows to decode itself into
Payload via IntoPayload.
Trait Implementations§
Source§impl<V: MaybeVersioned> TryUpdateFrom<&dyn Message> for Frame<V>
impl<V: MaybeVersioned> TryUpdateFrom<&dyn Message> for Frame<V>
Source§fn try_update_from(&mut self, value: &dyn Message) -> Result<(), Self::Error>
fn try_update_from(&mut self, value: &dyn Message) -> Result<(), Self::Error>
⚠
Updates a frame with the data from the provided message.
Replaces the following fields, that are guaranteed to be correct:
⚠ This method will strip Frame::signature. Make sure, that you know, how to sign
the updated frame afterward.
Source§fn check_try_update_from(&self, value: &&dyn Message) -> Result<(), Self::Error>
fn check_try_update_from(&self, value: &&dyn Message) -> Result<(), Self::Error>
⚠
Checks, that update is possible. Read moreSource§unsafe fn update_from_unchecked(&mut self, value: &dyn Message)
unsafe fn update_from_unchecked(&mut self, value: &dyn Message)
⚠
Performs the update without checking, whether update is possible. Read more