Struct kvproto::raft_cmdpb::StatusResponse[][src]

pub struct StatusResponse {
    pub cmd_type: StatusCmdType,
    pub region_leader: SingularPtrField<RegionLeaderResponse>,
    pub region_detail: SingularPtrField<RegionDetailResponse>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

cmd_type: StatusCmdTyperegion_leader: SingularPtrField<RegionLeaderResponse>region_detail: SingularPtrField<RegionDetailResponse>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl StatusResponse[src]

pub fn new() -> StatusResponse[src]

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

pub fn clear_cmd_type(&mut self)[src]

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

pub fn get_region_leader(&self) -> &RegionLeaderResponse[src]

pub fn clear_region_leader(&mut self)[src]

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

pub fn set_region_leader(&mut self, v: RegionLeaderResponse)[src]

pub fn mut_region_leader(&mut self) -> &mut RegionLeaderResponse[src]

pub fn take_region_leader(&mut self) -> RegionLeaderResponse[src]

pub fn get_region_detail(&self) -> &RegionDetailResponse[src]

pub fn clear_region_detail(&mut self)[src]

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

pub fn set_region_detail(&mut self, v: RegionDetailResponse)[src]

pub fn mut_region_detail(&mut self) -> &mut RegionDetailResponse[src]

pub fn take_region_detail(&mut self) -> RegionDetailResponse[src]

Trait Implementations

impl Clear for StatusResponse[src]

impl Clone for StatusResponse[src]

impl Debug for StatusResponse[src]

impl Default for StatusResponse[src]

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

impl Message for StatusResponse[src]

impl PartialEq<StatusResponse> for StatusResponse[src]

impl PbPrint for StatusResponse[src]

impl ProtobufValue for StatusResponse[src]

impl StructuralPartialEq for StatusResponse[src]

Auto Trait Implementations

impl RefUnwindSafe for StatusResponse

impl Send for StatusResponse

impl Sync for StatusResponse

impl Unpin for StatusResponse

impl UnwindSafe for StatusResponse

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.