Skip to main content

DecryptError

Enum DecryptError 

Source
pub enum DecryptError<P, V> {
    Processing(Error),
    Provider {
        envelope: Span,
        cause: P,
    },
    Plaintext {
        cause: Error,
        source: PlaintextSource,
    },
    Visitor {
        cause: V,
        source: PlaintextSource,
    },
}
Expand description

Terminal refusal, preserving the callback cause and its honest source space.

Variants§

§

Processing(Error)

Original AC/source/current-operation refusal (not plaintext coordinates).

§

Provider

Selected provider’s unchanged cause at this original envelope.

Fields

§envelope: Span

Original encrypted source range.

§cause: P

Unchanged provider/source/resource cause.

§

Plaintext

Plaintext syntax/resource refusal in the explicitly marked logical space.

Fields

§cause: Error

Unchanged located common failure; its offset is plaintext-relative.

§source: PlaintextSource

Original encrypted enclosure and coordinate discriminator.

§

Visitor

Visitor’s unchanged error, never swallowed after successful decryption.

Fields

§cause: V

Caller-controlled error; reader-derived offsets use plaintext space.

§source: PlaintextSource

Same original enclosure and explicit logical-source context.

Trait Implementations§

Source§

impl<P: Debug, V: Debug> Debug for DecryptError<P, V>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<P, V> !Freeze for DecryptError<P, V>

§

impl<P, V> RefUnwindSafe for DecryptError<P, V>

§

impl<P, V> Send for DecryptError<P, V>
where P: Send, V: Send,

§

impl<P, V> Sync for DecryptError<P, V>
where P: Sync, V: Sync,

§

impl<P, V> Unpin for DecryptError<P, V>
where P: Unpin, V: Unpin,

§

impl<P, V> UnsafeUnpin for DecryptError<P, V>
where P: UnsafeUnpin, V: UnsafeUnpin,

§

impl<P, V> UnwindSafe for DecryptError<P, V>
where P: UnwindSafe, V: 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.