Trait openraft::log_id::LogIdOptionExt
source · pub trait LogIdOptionExt {
// Required methods
fn index(&self) -> Option<u64>;
fn next_index(&self) -> u64;
}
Expand description
This helper trait extracts information from an Option<LogId>
.
Required Methods§
sourcefn next_index(&self) -> u64
fn next_index(&self) -> u64
Returns the next log index.
If self is None
, it returns 0.