Struct kvproto::raft_cmdpb::RegionLeaderResponse[][src]

pub struct RegionLeaderResponse {
    pub leader: SingularPtrField<Peer>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

leader: SingularPtrField<Peer>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl RegionLeaderResponse[src]

pub fn new() -> RegionLeaderResponse[src]

pub fn get_leader(&self) -> &Peer[src]

pub fn clear_leader(&mut self)[src]

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

pub fn set_leader(&mut self, v: Peer)[src]

pub fn mut_leader(&mut self) -> &mut Peer[src]

pub fn take_leader(&mut self) -> Peer[src]

Trait Implementations

impl Clear for RegionLeaderResponse[src]

impl Clone for RegionLeaderResponse[src]

impl Debug for RegionLeaderResponse[src]

impl Default for RegionLeaderResponse[src]

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

impl Message for RegionLeaderResponse[src]

impl PartialEq<RegionLeaderResponse> for RegionLeaderResponse[src]

impl PbPrint for RegionLeaderResponse[src]

impl ProtobufValue for RegionLeaderResponse[src]

impl StructuralPartialEq for RegionLeaderResponse[src]

Auto Trait Implementations

impl RefUnwindSafe for RegionLeaderResponse

impl Send for RegionLeaderResponse

impl Sync for RegionLeaderResponse

impl Unpin for RegionLeaderResponse

impl UnwindSafe for RegionLeaderResponse

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.