pub struct CodecError { /* private fields */ }Expand description
A structured decoding failure: what went wrong and where.
Implementations§
Source§impl CodecError
impl CodecError
Sourcepub const fn kind(&self) -> CodecErrorKind
pub const fn kind(&self) -> CodecErrorKind
Stable failure category.
Sourcepub fn path(&self) -> &str
pub fn path(&self) -> &str
Location relative to the decoded element: Name[2], @GUID,
DataType/PossibleValues[1]/ValueList[1]. Empty for the element itself.
Sourcepub fn detail(&self) -> &str
pub fn detail(&self) -> &str
Human-readable detail. Not stable; match on CodecError::kind.
Trait Implementations§
Source§impl Clone for CodecError
impl Clone for CodecError
Source§impl Debug for CodecError
impl Debug for CodecError
Source§impl Display for CodecError
impl Display for CodecError
impl Eq for CodecError
Source§impl Error for CodecError
impl Error for CodecError
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 PartialEq for CodecError
impl PartialEq for CodecError
impl StructuralPartialEq for CodecError
Auto Trait Implementations§
impl Freeze for CodecError
impl RefUnwindSafe for CodecError
impl Send for CodecError
impl Sync for CodecError
impl Unpin for CodecError
impl UnsafeUnpin for CodecError
impl UnwindSafe for CodecError
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