pub enum IslMessageError {
Cfe(TelecommandError),
PayloadTooSmall,
PayloadTooLarge {
max: usize,
provided: usize,
},
}Expand description
An error that can occur when building or parsing an ISL message.
Variants§
Cfe(TelecommandError)
An error occurred during the underlying CFE Telecommand construction.
PayloadTooSmall
A received packet was expected to be an ISL message but its payload was
too small to contain a valid IslHeader.
PayloadTooLarge
The payload exceeds the maximum allowed size.
Trait Implementations§
Source§impl Clone for IslMessageError
impl Clone for IslMessageError
Source§fn clone(&self) -> IslMessageError
fn clone(&self) -> IslMessageError
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 IslMessageError
impl Debug for IslMessageError
Source§impl Display for IslMessageError
impl Display for IslMessageError
Source§impl Error for IslMessageError
impl Error for IslMessageError
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<E, GE> From<IslMessageError> for RouterError<E, GE>
impl<E, GE> From<IslMessageError> for RouterError<E, GE>
Source§fn from(source: IslMessageError) -> Self
fn from(source: IslMessageError) -> Self
Converts to this type from the input type.
Source§impl From<TelecommandError> for IslMessageError
impl From<TelecommandError> for IslMessageError
Source§fn from(source: TelecommandError) -> Self
fn from(source: TelecommandError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for IslMessageError
impl PartialEq for IslMessageError
impl Copy for IslMessageError
impl Eq for IslMessageError
impl StructuralPartialEq for IslMessageError
Auto Trait Implementations§
impl Freeze for IslMessageError
impl RefUnwindSafe for IslMessageError
impl Send for IslMessageError
impl Sync for IslMessageError
impl Unpin for IslMessageError
impl UnsafeUnpin for IslMessageError
impl UnwindSafe for IslMessageError
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