pub enum SpecError {
UnsupportedMavLinkVersion {
actual: MavLinkVersion,
minimal: MavLinkVersion,
},
NotInDialect(MessageId),
InvalidEnumValue {
enum_name: &'static str,
},
InvalidV1PayloadSize {
actual: usize,
expected: usize,
},
}Expand description
Errors related to MAVLink message specification and encoding/decoding.
All errors except SpecError::InvalidV1PayloadSize are related to wrong user input like
incorrectly chosen MAVLink dialect or protocol version.
Variants§
UnsupportedMavLinkVersion
MAVLink version is not supported.
Fields
§
actual: MavLinkVersionActual requested version.
§
minimal: MavLinkVersionMinimum supported MAVLink version,
NotInDialect(MessageId)
MAVLink message with specified ID is not in dialect.
InvalidEnumValue
Error during conversion to MAVLink enum.
InvalidV1PayloadSize
Invalid size of the MAVLink 1 payload.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpecError
impl RefUnwindSafe for SpecError
impl Send for SpecError
impl Sync for SpecError
impl Unpin for SpecError
impl UnwindSafe for SpecError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more