pub enum WALRecord<T: Types> {
SaveVote(T::Vote),
Append(T::LogId, T::LogPayload),
Commit(T::LogId),
TruncateAfter(Option<T::LogId>),
PurgeUpto(T::LogId),
State(RaftLogState<T>),
}Variants§
SaveVote(T::Vote)
Append(T::LogId, T::LogPayload)
Commit(T::LogId)
TruncateAfter(Option<T::LogId>)
PurgeUpto(T::LogId)
State(RaftLogState<T>)
Trait Implementations§
impl<T: Eq + Types> Eq for WALRecord<T>
impl<T: Types> StructuralPartialEq for WALRecord<T>
Auto Trait Implementations§
impl<T> Freeze for WALRecord<T>
impl<T> RefUnwindSafe for WALRecord<T>where
<T as Types>::Vote: RefUnwindSafe,
<T as Types>::LogId: RefUnwindSafe,
<T as Types>::LogPayload: RefUnwindSafe,
impl<T> Send for WALRecord<T>
impl<T> Sync for WALRecord<T>
impl<T> Unpin for WALRecord<T>
impl<T> UnwindSafe for WALRecord<T>where
<T as Types>::Vote: UnwindSafe,
<T as Types>::LogId: UnwindSafe,
<T as Types>::LogPayload: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)