pub struct CborError { /* private fields */ }Expand description
General CBOR error with no input, offsets, strings, or dependency diagnostics.
Implementations§
Source§impl CborError
impl CborError
Sourcepub const fn new(reason: ErrorReason) -> CborError
pub const fn new(reason: ErrorReason) -> CborError
Construct a fixed typed error.
Sourcepub const fn reason(self) -> ErrorReason
pub const fn reason(self) -> ErrorReason
Return the stable rejection reason.
Trait Implementations§
impl Copy for CborError
impl Eq for CborError
Source§impl Error for CborError
impl Error for CborError
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()
impl StructuralPartialEq for CborError
Auto Trait Implementations§
impl Forget for CborError
impl Freeze for CborError
impl Move for CborError
impl RefUnwindSafe for CborError
impl Send for CborError
impl Sync for CborError
impl Unpin for CborError
impl UnsafeUnpin for CborError
impl UnwindSafe for CborError
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