pub enum TelecommandError {
BufferTooSmall {
required_len: usize,
provided_len: usize,
},
SpacePacketBuildError(BuildError),
SpacePacketParseError(ParseError),
MissingSecondaryHeader,
PayloadMismatch,
TypeMismatch,
}Expand description
An error that can occur when building a CFE packet.
Variants§
BufferTooSmall
The provided buffer is too small to hold the packet.
Fields
SpacePacketBuildError(BuildError)
The underlying SPP builder returned an error.
SpacePacketParseError(ParseError)
The underlying SPP parser returned an error.
MissingSecondaryHeader
The secondary header flag is not set to Present.
PayloadMismatch
The packet data field does not match the expected layout.
TypeMismatch
The packet type does not match (e.g. telemetry instead of telecommand).
Trait Implementations§
Source§impl Clone for TelecommandError
impl Clone for TelecommandError
Source§fn clone(&self) -> TelecommandError
fn clone(&self) -> TelecommandError
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 TelecommandError
impl Debug for TelecommandError
Source§impl Display for TelecommandError
impl Display for TelecommandError
Source§impl Error for TelecommandError
impl Error for TelecommandError
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<BuildError> for TelecommandError
impl From<BuildError> for TelecommandError
Source§fn from(source: BuildError) -> Self
fn from(source: BuildError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for TelecommandError
impl From<ParseError> for TelecommandError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<TelecommandError> for GossipMessageError
impl From<TelecommandError> for GossipMessageError
Source§fn from(source: TelecommandError) -> Self
fn from(source: TelecommandError) -> 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 TelecommandError
impl PartialEq for TelecommandError
impl Copy for TelecommandError
impl Eq for TelecommandError
impl StructuralPartialEq for TelecommandError
Auto Trait Implementations§
impl Freeze for TelecommandError
impl RefUnwindSafe for TelecommandError
impl Send for TelecommandError
impl Sync for TelecommandError
impl Unpin for TelecommandError
impl UnsafeUnpin for TelecommandError
impl UnwindSafe for TelecommandError
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