pub enum ByteConversionError {
ToSliceTooSmall {
found: usize,
expected: usize,
},
FromSliceTooSmall {
found: usize,
expected: usize,
},
}Expand description
Generic error type when converting to and from raw byte slices.
Variants§
ToSliceTooSmall
The passed slice is too small. Returns the passed slice length and expected minimum size
FromSliceTooSmall
The provider buffer is too small. Returns the passed slice length and expected minimum size
Trait Implementations§
Source§impl Clone for ByteConversionError
impl Clone for ByteConversionError
Source§fn clone(&self) -> ByteConversionError
fn clone(&self) -> ByteConversionError
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 ByteConversionError
impl Debug for ByteConversionError
Source§impl<'de> Deserialize<'de> for ByteConversionError
impl<'de> Deserialize<'de> for ByteConversionError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ByteConversionError
impl Display for ByteConversionError
Source§impl Error for ByteConversionError
impl Error for ByteConversionError
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 Format for ByteConversionError
impl Format for ByteConversionError
Source§impl From<ByteConversionError> for CcsdsPacketCreationError
impl From<ByteConversionError> for CcsdsPacketCreationError
Source§fn from(source: ByteConversionError) -> Self
fn from(source: ByteConversionError) -> Self
Converts to this type from the input type.
Source§impl From<ByteConversionError> for CcsdsPacketReadError
impl From<ByteConversionError> for CcsdsPacketReadError
Source§fn from(source: ByteConversionError) -> Self
fn from(source: ByteConversionError) -> Self
Converts to this type from the input type.
Source§impl From<ByteConversionError> for DestIdOperationError
impl From<ByteConversionError> for DestIdOperationError
Source§fn from(source: ByteConversionError) -> Self
fn from(source: ByteConversionError) -> Self
Converts to this type from the input type.
Source§impl From<ByteConversionError> for PduError
impl From<ByteConversionError> for PduError
Source§fn from(source: ByteConversionError) -> Self
fn from(source: ByteConversionError) -> Self
Converts to this type from the input type.
Source§impl From<ByteConversionError> for PusError
impl From<ByteConversionError> for PusError
Source§fn from(source: ByteConversionError) -> Self
fn from(source: ByteConversionError) -> Self
Converts to this type from the input type.
Source§impl From<ByteConversionError> for TimestampError
impl From<ByteConversionError> for TimestampError
Source§fn from(source: ByteConversionError) -> Self
fn from(source: ByteConversionError) -> Self
Converts to this type from the input type.
Source§impl From<ByteConversionError> for TlvLvError
impl From<ByteConversionError> for TlvLvError
Source§fn from(source: ByteConversionError) -> Self
fn from(source: ByteConversionError) -> Self
Converts to this type from the input type.
Source§impl From<ByteConversionError> for UnsignedByteFieldError
impl From<ByteConversionError> for UnsignedByteFieldError
Source§fn from(source: ByteConversionError) -> Self
fn from(source: ByteConversionError) -> Self
Converts to this type from the input type.
Source§impl From<ByteConversionError> for UslpError
impl From<ByteConversionError> for UslpError
Source§fn from(source: ByteConversionError) -> Self
fn from(source: ByteConversionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ByteConversionError
impl PartialEq for ByteConversionError
Source§impl Serialize for ByteConversionError
impl Serialize for ByteConversionError
impl Copy for ByteConversionError
impl Eq for ByteConversionError
impl StructuralPartialEq for ByteConversionError
Auto Trait Implementations§
impl Freeze for ByteConversionError
impl RefUnwindSafe for ByteConversionError
impl Send for ByteConversionError
impl Sync for ByteConversionError
impl Unpin for ByteConversionError
impl UnwindSafe for ByteConversionError
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