pub enum BuildError {
BufferTooSmall {
required: usize,
provided: usize,
},
PayloadTooLarge {
max: usize,
provided: usize,
},
EmptyDataField,
InvalidApid {
value: u16,
},
}Expand description
An error that occurs during the construction of a SpacePacket header.
Variants§
BufferTooSmall
This variant is not used by the builder but is kept for the SpacePacket::new constructor.
PayloadTooLarge
The provided data field length exceeds the maximum allowed size.
EmptyDataField
The CCSDS standard forbids packets with an empty data field.
InvalidApid
The provided APID value is outside the valid 11-bit range (0-2047).
Trait Implementations§
Source§impl Clone for BuildError
impl Clone for BuildError
Source§fn clone(&self) -> BuildError
fn clone(&self) -> BuildError
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 BuildError
impl Debug for BuildError
Source§impl Display for BuildError
impl Display for BuildError
Source§impl Error for BuildError
impl Error for BuildError
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<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 Hash for BuildError
impl Hash for BuildError
Source§impl PartialEq for BuildError
impl PartialEq for BuildError
impl Copy for BuildError
impl Eq for BuildError
impl StructuralPartialEq for BuildError
Auto Trait Implementations§
impl Freeze for BuildError
impl RefUnwindSafe for BuildError
impl Send for BuildError
impl Sync for BuildError
impl Unpin for BuildError
impl UnsafeUnpin for BuildError
impl UnwindSafe for BuildError
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