[−][src]Struct frugalos_raft::RaftIo
raftlog::Io
トレイトの実装.
Methods
impl RaftIo
[src]
pub fn new(
service: ServiceHandle,
storage: Storage,
mailer: Mailer,
timer: Timer
) -> Result<Self>
[src]
service: ServiceHandle,
storage: Storage,
mailer: Mailer,
timer: Timer
) -> Result<Self>
新しい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
.
fn try_recv_message(&mut self) -> Result<Option<Message>>
[src]
fn send_message(&mut self, message: Message)
[src]
fn save_ballot(&mut self, ballot: Ballot) -> Self::SaveBallot
[src]
fn load_ballot(&mut self) -> Self::LoadBallot
[src]
fn save_log_prefix(&mut self, prefix: LogPrefix) -> Self::SaveLog
[src]
fn save_log_suffix(&mut self, suffix: &LogSuffix) -> Self::SaveLog
[src]
fn load_log(&mut self, start: LogIndex, end: Option<LogIndex>) -> Self::LoadLog
[src]
fn create_timeout(&mut self, role: Role) -> Self::Timeout
[src]
fn is_busy(&mut self) -> bool
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,