Enum raftstore::store::RegionTask[][src]

pub enum RegionTask<S> {
    Gen {
        region_id: u64,
        last_applied_index_term: u64,
        last_applied_state: RaftApplyState,
        kv_snap: S,
        canceled: Arc<AtomicBool>,
        notifier: SyncSender<RaftSnapshot>,
        for_balance: bool,
    },
    Apply {
        region_id: u64,
        status: Arc<AtomicUsize>,
    },
    Destroy {
        region_id: u64,
        start_key: Vec<u8>,
        end_key: Vec<u8>,
    },
}

Region related task

Variants

Gen

Fields of Gen

region_id: u64last_applied_index_term: u64last_applied_state: RaftApplyStatekv_snap: Scanceled: Arc<AtomicBool>notifier: SyncSender<RaftSnapshot>for_balance: bool
Apply

Fields of Apply

region_id: u64status: Arc<AtomicUsize>
Destroy

Destroy data between [start_key, end_key).

The deletion may and may not succeed.

Fields of Destroy

region_id: u64start_key: Vec<u8>end_key: Vec<u8>

Implementations

impl<S> Task<S>[src]

pub fn destroy(region_id: u64, start_key: Vec<u8>, end_key: Vec<u8>) -> Task<S>[src]

Trait Implementations

impl<S: Debug> Debug for Task<S>[src]

impl<S> Display for Task<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for Task<S> where
    S: RefUnwindSafe

impl<S> Send for Task<S> where
    S: Send

impl<S> Sync for Task<S> where
    S: Sync

impl<S> Unpin for Task<S> where
    S: Unpin

impl<S> UnwindSafe for Task<S> where
    S: UnwindSafe

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> ToString for T where
    T: Display + ?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]