Enum raftstore::store::msg::SignificantMsg[][src]

pub enum SignificantMsg<SK> where
    SK: Snapshot
{ SnapshotStatus { region_id: u64, to_peer_id: u64, status: SnapshotStatus, }, StoreUnreachable { store_id: u64, }, Unreachable { region_id: u64, to_peer_id: u64, }, CatchUpLogs(CatchUpLogs), MergeResult { target_region_id: u64, target: Peer, result: MergeResultKind, }, StoreResolved { store_id: u64, group_id: u64, }, CaptureChange { cmd: ChangeObserver, region_epoch: RegionEpoch, callback: Callback<SK>, }, LeaderCallback(Callback<SK>), }

Some significant messages sent to raftstore. Raftstore will dispatch these messages to Raft groups to update some important internal status.

Variants

SnapshotStatus

Reports whether the snapshot sending is successful or not.

Fields of SnapshotStatus

region_id: u64to_peer_id: u64status: SnapshotStatus
StoreUnreachable

Fields of StoreUnreachable

store_id: u64
Unreachable

Reports to_peer_id is unreachable.

Fields of Unreachable

region_id: u64to_peer_id: u64
CatchUpLogs(CatchUpLogs)

Source region catch up logs for merging

MergeResult

Result of the fact that the region is merged.

Fields of MergeResult

target_region_id: u64target: Peerresult: MergeResultKind
StoreResolved

Fields of StoreResolved

store_id: u64group_id: u64
CaptureChange

Capture the changes of the region.

Fields of CaptureChange

cmd: ChangeObserverregion_epoch: RegionEpochcallback: Callback<SK>
LeaderCallback(Callback<SK>)

Trait Implementations

impl<SK: Debug> Debug for SignificantMsg<SK> where
    SK: Snapshot
[src]

Auto Trait Implementations

impl<SK> !RefUnwindSafe for SignificantMsg<SK>

impl<SK> Send for SignificantMsg<SK>

impl<SK> !Sync for SignificantMsg<SK>

impl<SK> Unpin for SignificantMsg<SK>

impl<SK> !UnwindSafe for SignificantMsg<SK>

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<V, W> ConvertFrom<W> for V where
    W: ConvertTo<V>, 
[src]

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

impl<T> Instrument for T[src]

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized
[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>, 
[src]