[−][src]Enum raftlog::Event
ReplicatedLog
から発生するイベント一覧.
Variants
ローカルノードの役割が変わった.
Fields of RoleChanged
new_role: Role
新しい選挙期間に移った.
Fields of TermChanged
new_ballot: Ballot
新しいリーダーが選出された.
新しいログエントリがコミットされた.
エントリの内容がコマンドの場合には、
ReplicatedLog
の利用者は、自身が管理する状態機械に、
command
を適用する必要がある.
ログエントリはインデックスの昇順でコミットされ, インデックスは常に一ずつ増加する.
スナップショットがロードされた.
ReplicatedLog
の利用者は、自身が管理する状態機械を、
snapshot
の状態にリセットする必要がある.
Fields of SnapshotLoaded
new_head: LogPosition
snapshot: Vec<u8>
スナップショットのインストールが行われた.
もしnew_head
の位置が、最新のコミット済み地点よりも
新しい場合には、これとは別にSnapshotLoaded
イベントが発行される.
Fields of SnapshotInstalled
new_head: LogPosition
Trait Implementations
impl Debug for Event
[src]
impl Eq for Event
[src]
impl PartialEq<Event> for Event
[src]
impl StructuralEq for Event
[src]
impl StructuralPartialEq for Event
[src]
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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>,