pub enum IngestResult<E> {
Inserted,
AlreadyExists,
Ordered(Vec<Operation<E>>),
OutOfOrder,
Outdated,
}Available on crate feature
ingest only.Expand description
Result of ingesting an operation (validation, de-duplication, optional ooo-buffering and
writing to store) using ingest_operation.
Variants§
Inserted
Validated and inserted operation into store.
AlreadyExists
Duplicate operation which was ignored.
Ordered(Vec<Operation<E>>)
Operation freed buffered items which are now in-order.
The incoming operation itself is also included in the array.
OutOfOrder
Out-of-order operation which was moved to internal buffer.
Outdated
Operation was from before a pruning point and was ignored.
Trait Implementations§
Source§impl<E> Clone for IngestResult<E>where
E: Clone,
impl<E> Clone for IngestResult<E>where
E: Clone,
Source§fn clone(&self) -> IngestResult<E>
fn clone(&self) -> IngestResult<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E> Debug for IngestResult<E>where
E: Debug,
impl<E> Debug for IngestResult<E>where
E: Debug,
impl<E> Eq for IngestResult<E>where
E: Eq,
Source§impl<E> PartialEq for IngestResult<E>where
E: PartialEq,
impl<E> PartialEq for IngestResult<E>where
E: PartialEq,
impl<E> StructuralPartialEq for IngestResult<E>where
E: PartialEq,
Auto Trait Implementations§
impl<E> Forget for IngestResult<E>
impl<E> Freeze for IngestResult<E>
impl<E> RefUnwindSafe for IngestResult<E>
impl<E> Send for IngestResult<E>
impl<E> Sync for IngestResult<E>
impl<E> Unpin for IngestResult<E>
impl<E> UnsafeUnpin for IngestResult<E>
impl<E> UnwindSafe for IngestResult<E>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more