pub enum TwineCodecError {
Show 13 variants
BufferBytesConversion(&'static str),
BufferDecodeTooShort,
BufferDecodeUnexpectedTlvLength(usize, usize),
BufferEncodeNoSpace,
BufferEncodeMaxLength,
BufferMaxLength(usize, usize),
BufferTlvWrongType,
HexDecodeError,
MissingDatasetParameter(&'static str),
StringParseError,
TlvError(TwineTlvError),
TypeBuildError(&'static str),
Internal(&'static str),
}Variants§
BufferBytesConversion(&'static str)
BufferDecodeTooShort
BufferDecodeUnexpectedTlvLength(usize, usize)
BufferEncodeNoSpace
BufferEncodeMaxLength
BufferMaxLength(usize, usize)
BufferTlvWrongType
HexDecodeError
MissingDatasetParameter(&'static str)
StringParseError
TlvError(TwineTlvError)
TypeBuildError(&'static str)
Internal(&'static str)
Trait Implementations§
Source§impl Debug for TwineCodecError
impl Debug for TwineCodecError
Source§impl Display for TwineCodecError
impl Display for TwineCodecError
Source§impl Error for TwineCodecError
impl Error for TwineCodecError
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<TwineTlvError> for TwineCodecError
impl From<TwineTlvError> for TwineCodecError
Source§fn from(source: TwineTlvError) -> Self
fn from(source: TwineTlvError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TwineCodecError
impl PartialEq for TwineCodecError
impl StructuralPartialEq for TwineCodecError
Auto Trait Implementations§
impl Freeze for TwineCodecError
impl RefUnwindSafe for TwineCodecError
impl Send for TwineCodecError
impl Sync for TwineCodecError
impl Unpin for TwineCodecError
impl UnsafeUnpin for TwineCodecError
impl UnwindSafe for TwineCodecError
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