pub enum DecoderError {
InvalidIndex(u64),
Integer(IntegerError),
String(StringError),
Truncated,
}Expand description
Decoder-Fehler.
Variants§
InvalidIndex(u64)
Index ist 0 oder ueber Table-Range.
Integer(IntegerError)
Integer-Decode-Fehler.
String(StringError)
String-Decode-Fehler.
Truncated
Buffer ist truncated.
Trait Implementations§
Source§impl Clone for DecoderError
impl Clone for DecoderError
Source§fn clone(&self) -> DecoderError
fn clone(&self) -> DecoderError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DecoderError
impl Debug for DecoderError
Source§impl Display for DecoderError
impl Display for DecoderError
Source§impl Error for DecoderError
Available on crate feature std only.
impl Error for DecoderError
Available on crate feature
std only.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 From<IntegerError> for DecoderError
impl From<IntegerError> for DecoderError
Source§fn from(e: IntegerError) -> Self
fn from(e: IntegerError) -> Self
Converts to this type from the input type.
Source§impl From<StringError> for DecoderError
impl From<StringError> for DecoderError
Source§fn from(e: StringError) -> Self
fn from(e: StringError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DecoderError
impl PartialEq for DecoderError
Source§fn eq(&self, other: &DecoderError) -> bool
fn eq(&self, other: &DecoderError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DecoderError
impl StructuralPartialEq for DecoderError
Auto Trait Implementations§
impl Freeze for DecoderError
impl RefUnwindSafe for DecoderError
impl Send for DecoderError
impl Sync for DecoderError
impl Unpin for DecoderError
impl UnsafeUnpin for DecoderError
impl UnwindSafe for DecoderError
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