[][src]Struct raft4rs::storage::RaftLog

pub struct RaftLog {
    pub log_mem: RwLock<LogMem>,
    // some fields omitted
}

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,