pub struct Error { /* private fields */ }Expand description
A certificate that could not be read, and where.
Implementations§
Source§impl Error
impl Error
Sourcepub fn resource(reason: MemoryError, field: &'static str, offset: u64) -> Self
pub fn resource(reason: MemoryError, field: &'static str, offset: u64) -> Self
A resource failure at the originating document offset, without allocation.
Sourcepub fn new(code: ErrorCode, field: &'static str, offset: u64) -> Self
pub fn new(code: ErrorCode, field: &'static str, offset: u64) -> Self
An error in a named field, at a known offset in the document.
Sourcepub fn is_limit(&self) -> bool
pub fn is_limit(&self) -> bool
Whether this run declined to finish rather than the certificate being wrong. A spent budget says nothing about the document, and reporting it as a broken certificate would tell somebody their document is damaged when the truth is that this device gave up.
Sourcepub fn is_resource(&self) -> bool
pub fn is_resource(&self) -> bool
Whether resource exhaustion stopped the run, including allocator failure.
Trait Implementations§
impl Eq for Error
Source§impl<E> From<Error> for CallbackError<E>
impl<E> From<Error> for CallbackError<E>
Source§impl<V, D> From<Error> for SignatureError<V, D>
impl<V, D> From<Error> for SignatureError<V, D>
Source§impl<V, R> From<Error> for BuildError<V, R>
impl<V, R> From<Error> for BuildError<V, R>
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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