Struct kvproto::raft_cmdpb::AdminResponse[][src]

pub struct AdminResponse {
    pub cmd_type: AdminCmdType,
    pub change_peer: SingularPtrField<ChangePeerResponse>,
    pub split: SingularPtrField<SplitResponse>,
    pub compact_log: SingularPtrField<CompactLogResponse>,
    pub transfer_leader: SingularPtrField<TransferLeaderResponse>,
    pub verify_hash: SingularPtrField<VerifyHashResponse>,
    pub prepare_merge: SingularPtrField<PrepareMergeResponse>,
    pub commit_merge: SingularPtrField<CommitMergeResponse>,
    pub rollback_merge: SingularPtrField<RollbackMergeResponse>,
    pub splits: SingularPtrField<BatchSplitResponse>,
    pub change_peer_v2: SingularPtrField<ChangePeerV2Response>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

cmd_type: AdminCmdTypechange_peer: SingularPtrField<ChangePeerResponse>split: SingularPtrField<SplitResponse>compact_log: SingularPtrField<CompactLogResponse>transfer_leader: SingularPtrField<TransferLeaderResponse>verify_hash: SingularPtrField<VerifyHashResponse>prepare_merge: SingularPtrField<PrepareMergeResponse>commit_merge: SingularPtrField<CommitMergeResponse>rollback_merge: SingularPtrField<RollbackMergeResponse>splits: SingularPtrField<BatchSplitResponse>change_peer_v2: SingularPtrField<ChangePeerV2Response>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl AdminResponse[src]

pub fn new() -> AdminResponse[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) -> &ChangePeerResponse[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: ChangePeerResponse)[src]

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

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

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

pub fn clear_split(&mut self)[src]

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

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

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

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

pub fn get_compact_log(&self) -> &CompactLogResponse[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: CompactLogResponse)[src]

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

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

pub fn get_transfer_leader(&self) -> &TransferLeaderResponse[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: TransferLeaderResponse)[src]

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

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

pub fn get_verify_hash(&self) -> &VerifyHashResponse[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: VerifyHashResponse)[src]

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

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

pub fn get_prepare_merge(&self) -> &PrepareMergeResponse[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: PrepareMergeResponse)[src]

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

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

pub fn get_commit_merge(&self) -> &CommitMergeResponse[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: CommitMergeResponse)[src]

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

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

pub fn get_rollback_merge(&self) -> &RollbackMergeResponse[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: RollbackMergeResponse)[src]

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

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

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

pub fn clear_splits(&mut self)[src]

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

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

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

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

pub fn get_change_peer_v2(&self) -> &ChangePeerV2Response[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: ChangePeerV2Response)[src]

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

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

Trait Implementations

impl Clear for AdminResponse[src]

impl Clone for AdminResponse[src]

impl Debug for AdminResponse[src]

impl Default for AdminResponse[src]

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

impl Message for AdminResponse[src]

impl PartialEq<AdminResponse> for AdminResponse[src]

impl PbPrint for AdminResponse[src]

impl ProtobufValue for AdminResponse[src]

impl StructuralPartialEq for AdminResponse[src]

Auto Trait Implementations

impl RefUnwindSafe for AdminResponse

impl Send for AdminResponse

impl Sync for AdminResponse

impl Unpin for AdminResponse

impl UnwindSafe for AdminResponse

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.