pub enum EncoderError {
UnknownMessage {
id: u32,
},
DialectMismatch {
id: u32,
},
InvalidPayloadSize {
id: u32,
maximum: usize,
actual: usize,
},
InvalidMAVLink1SystemId {
id: u32,
},
}Expand description
Error while encoding a MAVLink message.
Variants§
UnknownMessage
Message ID does not exist in this dialect.
DialectMismatch
Message belongs to a different dialect instance.
InvalidPayloadSize
Payload does not fit in the output buffer.
InvalidMAVLink1SystemId
MAVLink 1 only supports system IDs from 0 to 255
Trait Implementations§
Source§impl Debug for EncoderError
impl Debug for EncoderError
Source§impl Display for EncoderError
impl Display for EncoderError
Source§impl Error for EncoderError
Available on crate feature std only.
impl Error for EncoderError
Available on crate feature
std only.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<!> for EncoderError
impl From<!> for EncoderError
Source§fn from(error: !) -> EncoderError
fn from(error: !) -> EncoderError
Converts to this type from the input type.
Source§impl From<EncoderError> for MessageWriteError
impl From<EncoderError> for MessageWriteError
Source§fn from(e: EncoderError) -> MessageWriteError
fn from(e: EncoderError) -> MessageWriteError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EncoderError
impl RefUnwindSafe for EncoderError
impl Send for EncoderError
impl Sync for EncoderError
impl Unpin for EncoderError
impl UnsafeUnpin for EncoderError
impl UnwindSafe for EncoderError
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