Skip to main content

Error

Enum Error 

Source
pub enum Error<E, PE, N> {
    Foreign {
        node: N,
    },
    Access(AccessError<E, N>),
    Obligation(ObligationError<N>),
    Index(IndexError<N>),
    Archive(ArchiveError<N>),
    Provider {
        node: N,
        cause: PE,
    },
    Resource {
        node: N,
        cause: MemoryError,
    },
    CallbackProtocol {
        node: N,
    },
}
Expand description

Terminal source, scope, callback or resource failure. No successful partial report is returned, and external handler side effects cannot be rolled back.

Variants§

§

Foreign

Foreign source, signature, incomplete counter census or archive binding.

Fields

§node: N

Original enclosing node.

§

Access(AccessError<E, N>)

Original XML/current-operation/source refusal.

§

Obligation(ObligationError<N>)

Original scope/membership query refusal.

§

Index(IndexError<N>)

Original known artifact lookup refusal.

§

Archive(ArchiveError<N>)

Original archive evidence/coverage/lookup refusal.

§

Provider

Original credential format handler refused.

Fields

§node: N

Original credential payload.

§cause: PE

Unchanged processing/resource cause.

§

Resource

Admission failed before dependent traversal or report growth.

Fields

§node: N

Original selecting credential or enclosing root.

§cause: MemoryError

Original memory/work refusal.

§

CallbackProtocol

The handler returned a visitor error without invoking/refusing its visitor.

Fields

§node: N

Original credential payload.

Trait Implementations§

Source§

impl<E: Debug, PE: Debug, N: Debug> Debug for Error<E, PE, N>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<E, PE, N> Forget for Error<E, PE, N>

§

impl<E, PE, N> Freeze for Error<E, PE, N>

§

impl<E, PE, N> RefUnwindSafe for Error<E, PE, N>

§

impl<E, PE, N> Send for Error<E, PE, N>

§

impl<E, PE, N> Sync for Error<E, PE, N>

§

impl<E, PE, N> Unpin for Error<E, PE, N>

§

impl<E, PE, N> UnsafeUnpin for Error<E, PE, N>

§

impl<E, PE, N> UnwindSafe for Error<E, PE, N>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.