pub enum FrameError {
Version(VersionError),
Checksum,
Signature,
Incompatible(IncompatFlagsError),
NotInDialect(MessageId),
FrameBufferIsTooSmall {
expected: usize,
actual: usize,
},
InvalidHeader,
}
Expand description
Errors related to MAVLink frame validation.
This means that the frame is already present but hasn’t passed certain criteria.
Variants§
Version(VersionError)
Incorrect MAVLink version.
Checksum
Upon calculation, CRC does not match received Frame::checksum.
Signature
Upon validation, the Frame::signature found to be incorrect.
Incompatible(IncompatFlagsError)
Upon validation, the Frame::incompat_flags do not match the required flag set.
NotInDialect(MessageId)
MAVLink message with the specified ID is not in dialect.
FrameBufferIsTooSmall
MAVLink frame can’t be process due to a small buffer.
InvalidHeader
Invalid MAVLink header.
Trait Implementations§
Source§impl Clone for FrameError
impl Clone for FrameError
Source§fn clone(&self) -> FrameError
fn clone(&self) -> FrameError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FrameError
impl Debug for FrameError
Source§impl<'de> Deserialize<'de> for FrameError
impl<'de> Deserialize<'de> for FrameError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FrameError
impl Display for FrameError
Source§impl Error for FrameError
impl Error for FrameError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ChecksumError> for FrameError
impl From<ChecksumError> for FrameError
Source§fn from(_: ChecksumError) -> Self
fn from(_: ChecksumError) -> Self
Converts ChecksumError
into FrameError::Checksum
.
Source§impl From<FrameError> for Error
impl From<FrameError> for Error
Source§fn from(value: FrameError) -> Self
fn from(value: FrameError) -> Self
Converts FrameError
into Error::Frame
.
Source§impl From<IncompatFlagsError> for FrameError
impl From<IncompatFlagsError> for FrameError
Source§fn from(value: IncompatFlagsError) -> Self
fn from(value: IncompatFlagsError) -> Self
Converts IncompatFlagsError
into FrameError::Incompatible
.
Source§impl From<SignatureError> for FrameError
impl From<SignatureError> for FrameError
Source§fn from(_: SignatureError) -> Self
fn from(_: SignatureError) -> Self
Converts SignatureError
into FrameError::Signature
.
Source§impl From<VersionError> for FrameError
impl From<VersionError> for FrameError
Source§fn from(value: VersionError) -> Self
fn from(value: VersionError) -> Self
Converts VersionError
into FrameError::Version
.
Source§impl NamedType for FrameError
impl NamedType for FrameError
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
this is equivalent to Type::inline but returns a NamedDataType instead.
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
this is equivalent to [Type::definition] but returns a NamedDataType instead.
Source§impl Serialize for FrameError
impl Serialize for FrameError
Source§impl Type for FrameError
impl Type for FrameError
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Returns the definition of a type using the provided generics. Read more
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
Generates a datatype corresponding to a reference to this type,
as determined by its category. Getting a reference to a type implies that
it should belong in the type map (since it has to be referenced from somewhere),
so the output of
definition
will be put into the type map.impl Flatten for FrameError
Auto Trait Implementations§
impl Freeze for FrameError
impl RefUnwindSafe for FrameError
impl Send for FrameError
impl Sync for FrameError
impl Unpin for FrameError
impl UnwindSafe for FrameError
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