pub enum WalOperation {
Add(Document),
Remove(String),
Clear,
Checkpoint {
checkpoint_id: u64,
},
}Expand description
Operations that can be logged to WAL
Variants§
Add(Document)
Add a document
Remove(String)
Remove a document by ID
Clear
Clear all documents
Checkpoint
Marker for checkpoint completion
Trait Implementations§
Source§impl Clone for WalOperation
impl Clone for WalOperation
Source§fn clone(&self) -> WalOperation
fn clone(&self) -> WalOperation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WalOperation
impl Debug for WalOperation
Source§impl<'de> Deserialize<'de> for WalOperation
impl<'de> Deserialize<'de> for WalOperation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WalOperation
impl RefUnwindSafe for WalOperation
impl Send for WalOperation
impl Sync for WalOperation
impl Unpin for WalOperation
impl UnsafeUnpin for WalOperation
impl UnwindSafe for WalOperation
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> 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