Struct kvproto::raft_cmdpb::AdminRequest[][src]

pub struct AdminRequest {
    pub cmd_type: AdminCmdType,
    pub change_peer: SingularPtrField<ChangePeerRequest>,
    pub split: SingularPtrField<SplitRequest>,
    pub compact_log: SingularPtrField<CompactLogRequest>,
    pub transfer_leader: SingularPtrField<TransferLeaderRequest>,
    pub verify_hash: SingularPtrField<VerifyHashRequest>,
    pub prepare_merge: SingularPtrField<PrepareMergeRequest>,
    pub commit_merge: SingularPtrField<CommitMergeRequest>,
    pub rollback_merge: SingularPtrField<RollbackMergeRequest>,
    pub splits: SingularPtrField<BatchSplitRequest>,
    pub change_peer_v2: SingularPtrField<ChangePeerV2Request>,
    pub compute_hash: SingularPtrField<ComputeHashRequest>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

cmd_type: AdminCmdTypechange_peer: SingularPtrField<ChangePeerRequest>split: SingularPtrField<SplitRequest>compact_log: SingularPtrField<CompactLogRequest>transfer_leader: SingularPtrField<TransferLeaderRequest>verify_hash: SingularPtrField<VerifyHashRequest>prepare_merge: SingularPtrField<PrepareMergeRequest>commit_merge: SingularPtrField<CommitMergeRequest>rollback_merge: SingularPtrField<RollbackMergeRequest>splits: SingularPtrField<BatchSplitRequest>change_peer_v2: SingularPtrField<ChangePeerV2Request>compute_hash: SingularPtrField<ComputeHashRequest>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl AdminRequest[src]

pub fn new() -> AdminRequest[src]

pub fn get_cmd_type(&self) -> AdminCmdType[src]

pub fn clear_cmd_type(&mut self)[src]

pub fn set_cmd_type(&mut self, v: AdminCmdType)[src]

pub fn get_change_peer(&self) -> &ChangePeerRequest[src]

pub fn clear_change_peer(&mut self)[src]

pub fn has_change_peer(&self) -> bool[src]

pub fn set_change_peer(&mut self, v: ChangePeerRequest)[src]

pub fn mut_change_peer(&mut self) -> &mut ChangePeerRequest[src]

pub fn take_change_peer(&mut self) -> ChangePeerRequest[src]

pub fn get_split(&self) -> &SplitRequest[src]

pub fn clear_split(&mut self)[src]

pub fn has_split(&self) -> bool[src]

pub fn set_split(&mut self, v: SplitRequest)[src]

pub fn mut_split(&mut self) -> &mut SplitRequest[src]

pub fn take_split(&mut self) -> SplitRequest[src]

pub fn get_compact_log(&self) -> &CompactLogRequest[src]

pub fn clear_compact_log(&mut self)[src]

pub fn has_compact_log(&self) -> bool[src]

pub fn set_compact_log(&mut self, v: CompactLogRequest)[src]

pub fn mut_compact_log(&mut self) -> &mut CompactLogRequest[src]

pub fn take_compact_log(&mut self) -> CompactLogRequest[src]

pub fn get_transfer_leader(&self) -> &TransferLeaderRequest[src]

pub fn clear_transfer_leader(&mut self)[src]

pub fn has_transfer_leader(&self) -> bool[src]

pub fn set_transfer_leader(&mut self, v: TransferLeaderRequest)[src]

pub fn mut_transfer_leader(&mut self) -> &mut TransferLeaderRequest[src]

pub fn take_transfer_leader(&mut self) -> TransferLeaderRequest[src]

pub fn get_verify_hash(&self) -> &VerifyHashRequest[src]

pub fn clear_verify_hash(&mut self)[src]

pub fn has_verify_hash(&self) -> bool[src]

pub fn set_verify_hash(&mut self, v: VerifyHashRequest)[src]

pub fn mut_verify_hash(&mut self) -> &mut VerifyHashRequest[src]

pub fn take_verify_hash(&mut self) -> VerifyHashRequest[src]

pub fn get_prepare_merge(&self) -> &PrepareMergeRequest[src]

pub fn clear_prepare_merge(&mut self)[src]

pub fn has_prepare_merge(&self) -> bool[src]

pub fn set_prepare_merge(&mut self, v: PrepareMergeRequest)[src]

pub fn mut_prepare_merge(&mut self) -> &mut PrepareMergeRequest[src]

pub fn take_prepare_merge(&mut self) -> PrepareMergeRequest[src]

pub fn get_commit_merge(&self) -> &CommitMergeRequest[src]

pub fn clear_commit_merge(&mut self)[src]

pub fn has_commit_merge(&self) -> bool[src]

pub fn set_commit_merge(&mut self, v: CommitMergeRequest)[src]

pub fn mut_commit_merge(&mut self) -> &mut CommitMergeRequest[src]

pub fn take_commit_merge(&mut self) -> CommitMergeRequest[src]

pub fn get_rollback_merge(&self) -> &RollbackMergeRequest[src]

pub fn clear_rollback_merge(&mut self)[src]

pub fn has_rollback_merge(&self) -> bool[src]

pub fn set_rollback_merge(&mut self, v: RollbackMergeRequest)[src]

pub fn mut_rollback_merge(&mut self) -> &mut RollbackMergeRequest[src]

pub fn take_rollback_merge(&mut self) -> RollbackMergeRequest[src]

pub fn get_splits(&self) -> &BatchSplitRequest[src]

pub fn clear_splits(&mut self)[src]

pub fn has_splits(&self) -> bool[src]

pub fn set_splits(&mut self, v: BatchSplitRequest)[src]

pub fn mut_splits(&mut self) -> &mut BatchSplitRequest[src]

pub fn take_splits(&mut self) -> BatchSplitRequest[src]

pub fn get_change_peer_v2(&self) -> &ChangePeerV2Request[src]

pub fn clear_change_peer_v2(&mut self)[src]

pub fn has_change_peer_v2(&self) -> bool[src]

pub fn set_change_peer_v2(&mut self, v: ChangePeerV2Request)[src]

pub fn mut_change_peer_v2(&mut self) -> &mut ChangePeerV2Request[src]

pub fn take_change_peer_v2(&mut self) -> ChangePeerV2Request[src]

pub fn get_compute_hash(&self) -> &ComputeHashRequest[src]

pub fn clear_compute_hash(&mut self)[src]

pub fn has_compute_hash(&self) -> bool[src]

pub fn set_compute_hash(&mut self, v: ComputeHashRequest)[src]

pub fn mut_compute_hash(&mut self) -> &mut ComputeHashRequest[src]

pub fn take_compute_hash(&mut self) -> ComputeHashRequest[src]

Trait Implementations

impl Clear for AdminRequest[src]

impl Clone for AdminRequest[src]

impl Debug for AdminRequest[src]

impl Default for AdminRequest[src]

impl<'a> Default for &'a AdminRequest[src]

impl Message for AdminRequest[src]

impl PartialEq<AdminRequest> for AdminRequest[src]

impl PbPrint for AdminRequest[src]

impl ProtobufValue for AdminRequest[src]

impl StructuralPartialEq for AdminRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for AdminRequest

impl Send for AdminRequest

impl Sync for AdminRequest

impl Unpin for AdminRequest

impl UnwindSafe for AdminRequest

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<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.