pub enum CfdpError {
BufferTooSmall {
required: usize,
provided: usize,
},
DataTooLarge {
field: &'static str,
max: usize,
},
IdLengthInvalid {
field: &'static str,
len: usize,
},
IdLengthMismatch,
Custom(&'static str),
TransactionNotFound,
TooManyConcurrentTransactions,
ActionBufferFull,
}Expand description
Errors that can occur during CFDP operations.
Variants§
BufferTooSmall
The provided buffer is too small for the required data.
DataTooLarge
A field’s data exceeds its maximum allowed size.
Fields
IdLengthInvalid
An entity or sequence number ID has an invalid length.
Fields
IdLengthMismatch
Source and destination entity ID lengths do not match.
Custom(&'static str)
A custom error with a static message.
TransactionNotFound
The referenced transaction was not found.
TooManyConcurrentTransactions
The maximum number of concurrent transactions has been reached.
ActionBufferFull
The action buffer is full and cannot accept more actions.
Trait Implementations§
impl Eq for CfdpError
impl StructuralPartialEq for CfdpError
Auto Trait Implementations§
impl Freeze for CfdpError
impl RefUnwindSafe for CfdpError
impl Send for CfdpError
impl Sync for CfdpError
impl Unpin for CfdpError
impl UnsafeUnpin for CfdpError
impl UnwindSafe for CfdpError
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