Enum test_raftstore::pd::Operator[][src]

enum Operator {
    AddPeer {
        peer: Either<Peer, Peer>,
        policy: SchedulePolicy,
    },
    RemovePeer {
        peer: Peer,
        policy: SchedulePolicy,
    },
    TransferLeader {
        peer: Peer,
        policy: SchedulePolicy,
    },
    MergeRegion {
        source_region_id: u64,
        target_region_id: u64,
        policy: Arc<RwLock<SchedulePolicy>>,
    },
    SplitRegion {
        region_epoch: RegionEpoch,
        policy: CheckPolicy,
        keys: Vec<Vec<u8>>,
    },
    LeaveJoint {
        policy: SchedulePolicy,
    },
    JointConfChange {
        add_peers: Vec<Peer>,
        to_add_peers: Vec<Peer>,
        remove_peers: Vec<Peer>,
        policy: SchedulePolicy,
    },
}

Variants

AddPeer

Fields of AddPeer

peer: Either<Peer, Peer>policy: SchedulePolicy
RemovePeer

Fields of RemovePeer

peer: Peerpolicy: SchedulePolicy
TransferLeader

Fields of TransferLeader

peer: Peerpolicy: SchedulePolicy
MergeRegion

Fields of MergeRegion

source_region_id: u64target_region_id: u64policy: Arc<RwLock<SchedulePolicy>>
SplitRegion

Fields of SplitRegion

region_epoch: RegionEpochpolicy: CheckPolicykeys: Vec<Vec<u8>>
LeaveJoint

Fields of LeaveJoint

policy: SchedulePolicy
JointConfChange

Fields of JointConfChange

add_peers: Vec<Peer>to_add_peers: Vec<Peer>remove_peers: Vec<Peer>policy: SchedulePolicy

Implementations

impl Operator[src]

fn make_region_heartbeat_response(
    &self,
    region_id: u64,
    cluster: &Cluster
) -> RegionHeartbeatResponse
[src]

fn try_finished(
    &mut self,
    cluster: &Cluster,
    region: &Region,
    leader: &Peer
) -> bool
[src]

Trait Implementations

impl Clone for Operator[src]

impl Debug for Operator[src]

Auto Trait Implementations

impl RefUnwindSafe for Operator

impl Send for Operator

impl Sync for Operator

impl Unpin for Operator

impl UnwindSafe for Operator

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> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]