Enum mavspec_rust_spec::SpecError
source · 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
Fields
§
actual: MavLinkVersion
Actual requested version.
§
minimal: MavLinkVersion
Minimum supported MAVLink version,
MAVLink version is not supported.
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