pub enum ByteConversionError {
ToSliceTooSmall(SizeMissmatch),
FromSliceTooSmall(SizeMissmatch),
ZeroCopyToError,
ZeroCopyFromError,
}Variants§
ToSliceTooSmall(SizeMissmatch)
The passed slice is too small. Returns the passed slice length and expected minimum size
FromSliceTooSmall(SizeMissmatch)
The provider buffer is too small. Returns the passed slice length and expected minimum size
ZeroCopyToError
The zerocopy library failed to write to bytes
ZeroCopyFromError
Trait Implementations§
source§impl Clone for ByteConversionError
impl Clone for ByteConversionError
source§fn clone(&self) -> ByteConversionError
fn clone(&self) -> ByteConversionError
Returns a copy 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)>
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<ByteConversionError> for PusError
impl From<ByteConversionError> for PusError
source§fn from(e: ByteConversionError) -> Self
fn from(e: ByteConversionError) -> Self
Converts to this type from the input type.
source§impl PartialEq<ByteConversionError> for ByteConversionError
impl PartialEq<ByteConversionError> for ByteConversionError
source§fn eq(&self, other: &ByteConversionError) -> bool
fn eq(&self, other: &ByteConversionError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.