[−][src]Struct frugalos_raft::RaftIo
raftlog::Io
トレイトの実装.
Implementations
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
インスタンスを生成する.
Trait Implementations
impl Debug for RaftIo
[src]
impl Drop 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
impl !RefUnwindSafe for RaftIo
impl Send for RaftIo
impl !Sync for RaftIo
impl Unpin for RaftIo
impl !UnwindSafe for RaftIo
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>,