Enum IncompleteLog
#[non_exhaustive]pub enum IncompleteLog {
OutOfMemory(TryReserveError),
LimitReached,
}Available on crate feature
alloc only.Expand description
The journal could not record an op. The pending ops no longer describe every change.
The in-memory state is still complete. Persist a full snapshot of it with
snapshot_ops, then call
JournaledSession::clear.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OutOfMemory(TryReserveError)
There was no memory to record the op.
LimitReached
The op would have grown the pending ops past the limit set with
JournaledSession::with_pending_limit.
Trait Implementations§
§impl Clone for IncompleteLog
impl Clone for IncompleteLog
§fn clone(&self) -> IncompleteLog
fn clone(&self) -> IncompleteLog
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 more§impl Debug for IncompleteLog
impl Debug for IncompleteLog
§impl Display for IncompleteLog
impl Display for IncompleteLog
impl Eq for IncompleteLog
§impl Error for IncompleteLog
impl Error for IncompleteLog
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
§impl PartialEq for IncompleteLog
impl PartialEq for IncompleteLog
impl StructuralPartialEq for IncompleteLog
Auto Trait Implementations§
impl Freeze for IncompleteLog
impl RefUnwindSafe for IncompleteLog
impl Send for IncompleteLog
impl Sync for IncompleteLog
impl Unpin for IncompleteLog
impl UnsafeUnpin for IncompleteLog
impl UnwindSafe for IncompleteLog
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<K, Q> Equivalent<Q> for K
impl<K, Q> Equivalent<Q> for K
§fn equivalent(&self, key: &Q) -> bool
fn equivalent(&self, key: &Q) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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