Skip to main content

FailureCause

Enum FailureCause 

Source
pub enum FailureCause<V>
where V: Identities,
{ Commit { target: IoTargetKey, fault: IoFault, }, Imported { scope: ImportScope<V>, }, Provider { domain: FlushDomain, error: Arc<Error>, }, ProviderAbandoned { domain: FlushDomain, }, }
Expand description

Why a failure exists, citing where it came from (DI-D-47, DI-D-50). A failed write is never a cause (DI-D-12 (a)). The lineages a failure belongs to are those of the writes in its suspect set.

Commit is relayed from the target’s backend, as an IoFault naming its source; the rest are relayed by the consumer or its provider, or observed by dioring, and say so.

Variants§

§

Commit

The built-in default provider’s commit of target failed, as the target’s backend reported it.

Fields

§target: IoTargetKey

The target whose commit failed.

§fault: IoFault

The fault, as the backend reported it.

§

Imported

The consumer imported a failure it learned of outside the instance: relayed by the consumer, with no code of dioring’s.

Fields

§scope: ImportScope<V>

Where the consumer said it lands.

§

Provider

The consumer’s provider reported domain failed (DI-D-27): relayed by the provider.

Fields

§domain: FlushDomain

The domain the provider failed.

§error: Arc<Error>

The provider’s own error, passed through as it gave it. Any code read from it is the provider’s, not one dioring captured.

§

ProviderAbandoned

The consumer’s provider dropped domain’s completion without answering (DI-D-27): dioring observed the silence, so there is no error to report.

Fields

§domain: FlushDomain

The domain left unanswered.

Trait Implementations§

Source§

impl<V> Clone for FailureCause<V>
where V: Clone + Identities,

Source§

fn clone(&self) -> FailureCause<V>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<V> Debug for FailureCause<V>
where V: Debug + Identities,

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<V> !RefUnwindSafe for FailureCause<V>

§

impl<V> !UnwindSafe for FailureCause<V>

§

impl<V> Freeze for FailureCause<V>
where ImportScope<V>: Freeze,

§

impl<V> Send for FailureCause<V>
where ImportScope<V>: Send,

§

impl<V> Sync for FailureCause<V>
where ImportScope<V>: Sync,

§

impl<V> Unpin for FailureCause<V>
where ImportScope<V>: Unpin,

§

impl<V> UnsafeUnpin for FailureCause<V>

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.