Skip to main content

ContainerError

Enum ContainerError 

Source
pub enum ContainerError<E, N> {
    Access(AccessError<E, N>),
    Child(ChildError<E, N>),
    Unexpected {
        node: N,
    },
    Missing {
        parent: N,
        local: &'static str,
    },
    Duplicate {
        node: N,
    },
    Order {
        node: N,
    },
    Empty {
        node: N,
    },
}
Expand description

Why a selected signature’s direct containers could not be located.

Variants§

§

Access(AccessError<E, N>)

Original XML access or execution failure.

§

Child(ChildError<E, N>)

Element-only container traversal failed, with its original location.

§

Unexpected

An element has no role in the selected container’s schema.

Fields

§node: N

Original element identity.

§

Missing

A required container is absent.

Fields

§parent: N

Parent in whose direct child list the container was required.

§local: &'static str

Missing container’s local name.

§

Duplicate

More than one original container occupies the same schema role.

Fields

§node: N

Repeated container’s original identity.

§

Order

SignedProperties appears after UnsignedProperties.

Fields

§node: N

Out-of-order original container.

§

Empty

A required property container has no element children.

Fields

§node: N

Original empty container.

Trait Implementations§

Source§

impl<E: Debug, N: Debug> Debug for ContainerError<E, N>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<E, N> Forget for ContainerError<E, N>

§

impl<E, N> Freeze for ContainerError<E, N>
where AccessError<E, N>: Freeze, ChildError<E, N>: Freeze, N: Freeze,

§

impl<E, N> RefUnwindSafe for ContainerError<E, N>

§

impl<E, N> Send for ContainerError<E, N>
where AccessError<E, N>: Send, ChildError<E, N>: Send, N: Send,

§

impl<E, N> Sync for ContainerError<E, N>
where AccessError<E, N>: Sync, ChildError<E, N>: Sync, N: Sync,

§

impl<E, N> Unpin for ContainerError<E, N>
where AccessError<E, N>: Unpin, ChildError<E, N>: Unpin, N: Unpin,

§

impl<E, N> UnsafeUnpin for ContainerError<E, N>

§

impl<E, N> UnwindSafe for ContainerError<E, 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.