[−][src]Struct raft4rs::storage::RaftLog
Fields
log_mem: RwLock<LogMem>
Implementations
impl RaftLog
[src]
pub fn new(id: u64, conf: Arc<Config>) -> RaftResult<Self>
[src]
pub async fn validate_log_file<'_>(&'_ self, __arg1: u64) -> RaftResult<()>
[src]
pub async fn iter<'_>(&'_ self, index: u64) -> RaftResult<RaftLogIter>
[src]
pub async fn info<'_>(&'_ self) -> (u64, u64, u64)
[src]
pub async fn last_index<'_>(&'_ self) -> u64
[src]
pub async fn last_applied<'_>(&'_ self) -> u64
[src]
pub async fn last_term<'_>(&'_ self) -> u64
[src]
pub fn load_start_index_or_def(&self, start_index: u64) -> u64
[src]
pub async fn commit<'_>(&'_ self, __arg1: Entry) -> RaftResult<u64>
[src]
pub async fn rollback<'_>(&'_ self)
[src]
pub async fn save_to_log<'_, '_>(
&'_ self,
target_applied: u64,
raft: &'_ Arc<Raft>
) -> RaftResult<()>
[src]
&'_ self,
target_applied: u64,
raft: &'_ Arc<Raft>
) -> RaftResult<()>
Auto Trait Implementations
impl !RefUnwindSafe for RaftLog
impl Send for RaftLog
impl Sync for RaftLog
impl Unpin for RaftLog
impl UnwindSafe for RaftLog
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,