[][src]Struct frugalos_raft::RaftIo

pub struct RaftIo { /* fields omitted */ }

raftlog::Ioトレイトの実装.

Methods

impl RaftIo[src]

pub fn new(
    service: ServiceHandle,
    storage: Storage,
    mailer: Mailer,
    timer: Timer
) -> Result<Self>
[src]

新しいRaftIoインスタンスを生成する.

pub fn stop(&mut self)[src]

Stops this RaftIo.

Trait Implementations

impl Drop for RaftIo[src]

impl Debug for RaftIo[src]

impl Io for RaftIo[src]

type SaveBallot = SaveBallot

ローカルノードの投票状況を保存するためのFuture.

type LoadBallot = LoadBallot

ノーカルノードの投票情報を取得ためのFuture.

type SaveLog = SaveLog

ローカルログを保存するためのFuture.

type LoadLog = LoadLog

ローカルログを取得するためのFuture.

type Timeout = Timeout

タイムアウトを表現するためのFuture.

Auto Trait Implementations

impl Send for RaftIo

impl !Sync for RaftIo

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]