pub enum Error {
Io(Arc<Error>),
Frame(FrameError),
Spec(SpecError),
}
Expand description
mavio
top-level error.
Returned by most of the functions and methods across mavio
. Other errors are either
converted to this error or wrapped by its variants.
Variants§
Io(Arc<Error>)
std::io::Error
wrapper.
Frame(FrameError)
Frame validation errors.
Spec(SpecError)
MAVLink specification errors. A wrapper for SpecError
re-exported from MAVSpec.
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<ChecksumError> for Error
impl From<ChecksumError> for Error
source§fn from(value: ChecksumError) -> Self
fn from(value: ChecksumError) -> Self
Converts ChecksumError
into FrameError::Checksum
variant of Error::Frame
.
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 Error
impl From<IncompatFlagsError> for Error
source§fn from(value: IncompatFlagsError) -> Self
fn from(value: IncompatFlagsError) -> Self
Converts IncompatFlagsError
into FrameError::Incompatible
variant of Error::Frame
.
source§impl From<SignatureError> for Error
impl From<SignatureError> for Error
source§fn from(value: SignatureError) -> Self
fn from(value: SignatureError) -> Self
Converts SignatureError
into FrameError::Signature
variant of Error::Frame
.
source§impl From<SpecError> for Error
impl From<SpecError> for Error
source§fn from(value: SpecError) -> Self
fn from(value: SpecError) -> Self
Converts SpecError
into Error::Spec
.
There is a special case for SpecError::NotInDialect
, that will be converted to
FrameError::NotInDialect
variant of Error::Frame
.
source§impl From<VersionError> for Error
impl From<VersionError> for Error
source§fn from(value: VersionError) -> Self
fn from(value: VersionError) -> Self
Converts VersionError
into FrameError::Version
variant of Error::Frame
.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)