Skip to main content

InputError

Enum InputError 

Source
pub enum InputError<SE, PE> {
    Processing(Error),
    Provider(PE),
    Source(SE),
    Unsupported,
    MalformedAlgorithm,
    ObjectCount,
    Membership,
    HashWidth,
    OutputWidth,
    ForeignRenewal,
    ForeignDigest,
}
Expand description

Original acquisition/provider failure or a completed unusable ERS recipe.

Variants§

§

Processing(Error)

Original source/depth/storage/work refusal.

§

Provider(PE)

The selected provider failed; its cause is preserved unchanged.

§

Source(SE)

Actual covered source did not reach successful EOF.

§

Unsupported

The selected provider does not implement this stream or written identity.

§

MalformedAlgorithm

A written digest violates its algorithm-specific syntax.

§

ObjectCount

A supplied group is empty, or Object was given several sources.

§

Membership

The selected object/group is absent from the first partial tree.

§

HashWidth

A declared tree hash has the wrong full output width.

§

OutputWidth

Provider output contradicts its own promised width.

§

ForeignRenewal

A previous-sequence receipt names another record or another new chain.

§

ForeignDigest

Cached input came from another provider, identity or request ordinal.

Trait Implementations§

Source§

impl<SE: Debug, PE: Debug> Debug for InputError<SE, PE>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<SE, PE> !Freeze for InputError<SE, PE>

§

impl<SE, PE> RefUnwindSafe for InputError<SE, PE>

§

impl<SE, PE> Send for InputError<SE, PE>
where PE: Send, SE: Send,

§

impl<SE, PE> Sync for InputError<SE, PE>
where PE: Sync, SE: Sync,

§

impl<SE, PE> Unpin for InputError<SE, PE>
where PE: Unpin, SE: Unpin,

§

impl<SE, PE> UnsafeUnpin for InputError<SE, PE>
where PE: UnsafeUnpin, SE: UnsafeUnpin,

§

impl<SE, PE> UnwindSafe for InputError<SE, PE>
where PE: UnwindSafe, SE: 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.