pub enum BookUpdate {
Applied,
Stale,
Gap,
Uninitialized,
}Expand description
The outcome of applying a BookDelta.
Variants§
Applied
The diff was applied and advanced the book.
Stale
The diff is older than the current state and was ignored.
Gap
A sequence gap was detected: a diff is missing. The book is now marked uninitialized and must be re-synced from a fresh snapshot.
Uninitialized
No snapshot has been applied yet; the diff cannot be used.
Trait Implementations§
Source§impl Clone for BookUpdate
impl Clone for BookUpdate
Source§fn clone(&self) -> BookUpdate
fn clone(&self) -> BookUpdate
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 moreimpl Copy for BookUpdate
Source§impl Debug for BookUpdate
impl Debug for BookUpdate
impl Eq for BookUpdate
Source§impl PartialEq for BookUpdate
impl PartialEq for BookUpdate
impl StructuralPartialEq for BookUpdate
Auto Trait Implementations§
impl Freeze for BookUpdate
impl RefUnwindSafe for BookUpdate
impl Send for BookUpdate
impl Sync for BookUpdate
impl Unpin for BookUpdate
impl UnsafeUnpin for BookUpdate
impl UnwindSafe for BookUpdate
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<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