Skip to main content

CarriedError

Enum CarriedError 

Source
pub enum CarriedError<E, D, G> {
    Archive(Error<E>),
    Encoding {
        member: MemberId<D, G>,
        physical: Span,
        cause: Error,
    },
    Cms {
        member: MemberId<D, G>,
        physical: Span,
        cause: Error,
    },
    Syntax {
        member: MemberId<D, G>,
        physical: Span,
        kind: Syntax,
    },
}
Expand description

Physical member provenance and decoded logical diagnostics stay distinct.

Variants§

§

Archive(Error<E>)

Original source/current query refused before the carried operation.

§

Encoding

Original ASN.1 diagnostic in decoded-member coordinates.

Fields

§member: MemberId<D, G>

Original member, independent of a temporary parsed view.

§physical: Span

Honest physical enclosure, not an invented inner physical offset.

§cause: Error

Unchanged original logical diagnostic.

§

Cms

Original CMS or RFC4998 diagnostic in decoded-member coordinates.

Fields

§member: MemberId<D, G>

Original member identity.

§physical: Span

Actual physical enclosure of the encoded member.

§cause: Error

Unchanged common error.

§

Syntax

A completed negative carried-envelope fact.

Fields

§member: MemberId<D, G>

Original member identity.

§physical: Span

Actual physical enclosure.

§kind: Syntax

Envelope-level negative fact.

Trait Implementations§

Source§

impl<E: Debug, D: Debug, G: Debug> Debug for CarriedError<E, D, G>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<E, D, G> !Freeze for CarriedError<E, D, G>

§

impl<E, D, G> RefUnwindSafe for CarriedError<E, D, G>

§

impl<E, D, G> Send for CarriedError<E, D, G>
where Error<E>: Send, MemberId<D, G>: Send,

§

impl<E, D, G> Sync for CarriedError<E, D, G>
where Error<E>: Sync, MemberId<D, G>: Sync,

§

impl<E, D, G> Unpin for CarriedError<E, D, G>
where Error<E>: Unpin, MemberId<D, G>: Unpin,

§

impl<E, D, G> UnsafeUnpin for CarriedError<E, D, G>

§

impl<E, D, G> UnwindSafe for CarriedError<E, D, G>
where Error<E>: UnwindSafe, MemberId<D, G>: 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.