Skip to main content

Error

Enum Error 

Source
pub enum Error<E, N> {
    Selection {
        parent: N,
        index: usize,
    },
    Lexical {
        node: N,
        local: &'static str,
    },
    Access(AccessError<E, N>),
    Child(ChildError<E, N>),
    Missing {
        parent: N,
        local: &'static str,
    },
    Duplicate {
        node: N,
    },
    Order {
        node: N,
    },
    Forbidden {
        node: N,
    },
    Unexpected {
        node: N,
    },
    Resource {
        node: N,
        cause: MemoryError,
    },
}
Expand description

Failure selecting the signed signature properties of this baseline.

Variants§

§

Selection

Caller selected no property of the requested original schema role.

Fields

§parent: N

Original signed property container.

§index: usize

Caller-provided data-object property ordinal.

§

Lexical

Present simple content violates the named property’s lexical contract.

Fields

§node: N

Original value element; no physical XML byte offset is invented.

§local: &'static str

Schema/property local name.

§

Access(AccessError<E, N>)

Original XML/source/current-operation refusal.

§

Child(ChildError<E, N>)

Original element-only container failure.

§

Missing

A required original property is absent.

Fields

§parent: N

Original enclosing node.

§local: &'static str

Required property’s local name.

§

Duplicate

A singleton property occurs more than once.

Fields

§node: N

Repeated original property.

§

Order

Original property is outside its schema sequence position.

Fields

§node: N

Original out-of-order property.

§

Forbidden

Legacy property explicitly excluded by the current baseline.

Fields

§node: N

Original excluded property.

§

Unexpected

This namespace/name has no role in the container’s schema.

Fields

§node: N

Original unexpected node.

§

Resource

Extension metadata could not be retained before storage growth.

Fields

§node: N

Original extension node.

§cause: MemoryError

Original allocation/work refusal.

Trait Implementations§

Source§

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

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<E, N> From<Error<E, N>> for CheckError<E, N>

Source§

fn from(cause: Error<E, N>) -> Self

Converts to this type from the input type.
Source§

impl<E, N> From<Error<E, N>> for UriError<E, N>

Source§

fn from(cause: Error<E, N>) -> Self

Converts to this type from the input type.
Source§

impl<E, N> From<Error<E, N>> for SyntaxError<E, N>

Source§

fn from(cause: Error<E, N>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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