pub enum TlvLvError {
DataTooLarge(TlvLvDataTooLargeError),
ByteConversion(ByteConversionError),
InvalidTlvTypeField(InvalidTlvTypeFieldError),
InvalidValueLength(usize),
SecondNameMissing,
InvalidFilestoreActionCode(u8),
}Expand description
Generic TLV/LV error.
Variants§
DataTooLarge(TlvLvDataTooLargeError)
Data too large error.
ByteConversion(ByteConversionError)
Byte conversion error.
InvalidTlvTypeField(InvalidTlvTypeFieldError)
Invalid TLV type field error.
InvalidValueLength(usize)
Invalid value length.
SecondNameMissing
Only applies to filestore requests and responses. Second name was missing where one is expected.
InvalidFilestoreActionCode(u8)
Invalid action code for filestore requests or responses.
Trait Implementations§
Source§impl Clone for TlvLvError
impl Clone for TlvLvError
Source§fn clone(&self) -> TlvLvError
fn clone(&self) -> TlvLvError
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 TlvLvError
impl Debug for TlvLvError
Source§impl<'de> Deserialize<'de> for TlvLvError
impl<'de> Deserialize<'de> for TlvLvError
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 TlvLvError
impl Display for TlvLvError
Source§impl Error for TlvLvError
impl Error for TlvLvError
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 TlvLvError
impl Format for TlvLvError
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<InvalidTlvTypeFieldError> for TlvLvError
impl From<InvalidTlvTypeFieldError> for TlvLvError
Source§fn from(source: InvalidTlvTypeFieldError) -> Self
fn from(source: InvalidTlvTypeFieldError) -> Self
Converts to this type from the input type.
Source§impl From<TlvLvDataTooLargeError> for TlvLvError
impl From<TlvLvDataTooLargeError> for TlvLvError
Source§fn from(source: TlvLvDataTooLargeError) -> Self
fn from(source: TlvLvDataTooLargeError) -> Self
Converts to this type from the input type.
Source§impl From<TlvLvError> for PduError
impl From<TlvLvError> for PduError
Source§fn from(source: TlvLvError) -> Self
fn from(source: TlvLvError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TlvLvError
impl PartialEq for TlvLvError
Source§impl Serialize for TlvLvError
impl Serialize for TlvLvError
impl Copy for TlvLvError
impl Eq for TlvLvError
impl StructuralPartialEq for TlvLvError
Auto Trait Implementations§
impl Freeze for TlvLvError
impl RefUnwindSafe for TlvLvError
impl Send for TlvLvError
impl Sync for TlvLvError
impl Unpin for TlvLvError
impl UnwindSafe for TlvLvError
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