Skip to main content

FormatError

Enum FormatError 

Source
pub enum FormatError<E, N> {
    Selection {
        signature: N,
        index: usize,
    },
    Property(Error<E, N>),
    Reference {
        node: N,
        status: Status,
    },
    Foreign {
        node: N,
    },
    Metadata {
        node: N,
        object: N,
        local: &'static str,
    },
}
Expand description

Format structure, reference eligibility and exact object-metadata refusals.

Variants§

§

Selection

Caller ordinal is absent or does not select a data-object format.

Fields

§signature: N

Original selected signature.

§index: usize

Requested data-object property ordinal.

§

Property(Error<E, N>)

Original schema, source-generation or resource cause.

§

Reference

Lookup reached an instruction whose target digest was not successfully checked, or which refers to SignedProperties rather than a data object.

Fields

§node: N

Original authenticated reference instruction.

§status: Status

Actual completed or unchecked digest outcome.

§

Foreign

Supplied reading belongs to another selected signature or source.

Fields

§node: N

Original property node from the supplied reading.

§

Metadata

A present original ds:Object attribute differs from its format value.

Fields

§node: N

Original property value element.

§object: N

Original referenced ds:Object.

§local: &'static str

Exact unqualified attribute name.

Trait Implementations§

Source§

impl<E: Debug, N: Debug> Debug for FormatError<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 FormatError<E, N>

§

impl<E, N> Freeze for FormatError<E, N>
where N: Freeze, Error<E, N>: Freeze,

§

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

§

impl<E, N> Send for FormatError<E, N>
where N: Send, Error<E, N>: Send,

§

impl<E, N> Sync for FormatError<E, N>
where N: Sync, Error<E, N>: Sync,

§

impl<E, N> Unpin for FormatError<E, N>
where N: Unpin, Error<E, N>: Unpin,

§

impl<E, N> UnsafeUnpin for FormatError<E, N>
where N: UnsafeUnpin, Error<E, N>: UnsafeUnpin,

§

impl<E, N> UnwindSafe for FormatError<E, N>
where N: UnwindSafe, Error<E, N>: UnwindSafe,

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.