Skip to main content

SnapshotReplayError

Enum SnapshotReplayError 

Source
pub enum SnapshotReplayError<I, P, V, S> {
    Initialization(I),
    SnapshotValidation(V),
    SnapshotState(S),
    SnapshotRevision {
        snapshot_revision: StreamRevision,
        history_revision: StreamRevision,
    },
    Application(P),
}
Expand description

English:
First failure during snapshot-assisted reconstruction; errors do not trigger fallback.

日本語:
スナップショットを用いた復元で最初に発生した失敗です。エラー時はフォールバックしません。

Variants§

§

Initialization(I)

English:
Creating initial state for full replay failed.

日本語:
全件再生のための初期状態の作成に失敗しました。

§

SnapshotValidation(V)

English:
The snapshot classification hook returned an error.

日本語:
スナップショット分類フックがエラーを返しました。

§

SnapshotState(S)

English:
Restoring the accepted snapshot failed.

日本語:
採用したスナップショットの復元に失敗しました。

§

SnapshotRevision

English:
An applicable snapshot’s tail could not be selected by StreamHistory::events_after. This includes a snapshot ahead of history or an unrepresentable next index.

日本語:
採用可能なスナップショットの後続部分を StreamHistory::events_after で選べませんでした。 履歴より先のスナップショットや、表現できない次の添字が該当します。

Fields

§snapshot_revision: StreamRevision

English:
Revision carried by the accepted snapshot.

日本語:
採用したスナップショットが保持するリビジョンです。

§history_revision: StreamRevision

English:
Final revision of the supplied history.

日本語:
指定された履歴の最終リビジョンです。

§

Application(P)

English:
Applying an event from the selected history failed.

日本語:
選択された履歴のイベント適用に失敗しました。

Trait Implementations§

Source§

impl<I: Debug, P: Debug, V: Debug, S: Debug> Debug for SnapshotReplayError<I, P, V, S>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<I: Eq, P: Eq, V: Eq, S: Eq> Eq for SnapshotReplayError<I, P, V, S>

Source§

impl<I: PartialEq, P: PartialEq, V: PartialEq, S: PartialEq> PartialEq for SnapshotReplayError<I, P, V, S>

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<I: PartialEq, P: PartialEq, V: PartialEq, S: PartialEq> StructuralPartialEq for SnapshotReplayError<I, P, V, S>

Auto Trait Implementations§

§

impl<I, P, V, S> Freeze for SnapshotReplayError<I, P, V, S>
where I: Freeze, V: Freeze, S: Freeze, P: Freeze,

§

impl<I, P, V, S> RefUnwindSafe for SnapshotReplayError<I, P, V, S>

§

impl<I, P, V, S> Send for SnapshotReplayError<I, P, V, S>
where I: Send, V: Send, S: Send, P: Send,

§

impl<I, P, V, S> Sync for SnapshotReplayError<I, P, V, S>
where I: Sync, V: Sync, S: Sync, P: Sync,

§

impl<I, P, V, S> Unpin for SnapshotReplayError<I, P, V, S>
where I: Unpin, V: Unpin, S: Unpin, P: Unpin,

§

impl<I, P, V, S> UnsafeUnpin for SnapshotReplayError<I, P, V, S>

§

impl<I, P, V, S> UnwindSafe for SnapshotReplayError<I, P, V, S>

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.