pub struct DumpRaftLog<T: Types> { /* private fields */ }Expand description
A struct that contains a snapshot of RaftLog data for inspection or debugging.
It includes the log state, log entries, cache entries and closed chunks.
Implementations§
Source§impl<T: Types> DumpRaftLog<T>
impl<T: Types> DumpRaftLog<T>
Sourcepub fn iter(&mut self) -> DumpRaftLogIter<'_, T> ⓘ
pub fn iter(&mut self) -> DumpRaftLogIter<'_, T> ⓘ
Returns an iterator that yields log entries in order
The iterator yields Result<(log_id, payload), io::Error> pairs. The payload is retrieved either from cache or by reading from the underlying chunk storage.
Auto Trait Implementations§
impl<T> Freeze for DumpRaftLog<T>
impl<T> RefUnwindSafe for DumpRaftLog<T>where
<T as Types>::Vote: RefUnwindSafe,
<T as Types>::LogId: RefUnwindSafe,
<T as Types>::UserData: RefUnwindSafe,
<T as Types>::LogPayload: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for DumpRaftLog<T>
impl<T> Sync for DumpRaftLog<T>
impl<T> Unpin for DumpRaftLog<T>
impl<T> UnwindSafe for DumpRaftLog<T>where
<T as Types>::LogId: RefUnwindSafe + UnwindSafe,
<T as Types>::LogPayload: RefUnwindSafe,
<T as Types>::Vote: UnwindSafe + RefUnwindSafe,
<T as Types>::UserData: UnwindSafe + RefUnwindSafe,
T: RefUnwindSafe,
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