Struct kvproto::errorpb::NotLeader[][src]

pub struct NotLeader {
    pub region_id: u64,
    pub leader: SingularPtrField<Peer>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

region_id: u64leader: SingularPtrField<Peer>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl NotLeader[src]

pub fn new() -> NotLeader[src]

pub fn get_region_id(&self) -> u64[src]

pub fn clear_region_id(&mut self)[src]

pub fn set_region_id(&mut self, v: u64)[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 NotLeader[src]

impl Clone for NotLeader[src]

impl Debug for NotLeader[src]

impl Default for NotLeader[src]

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

impl Message for NotLeader[src]

impl PartialEq<NotLeader> for NotLeader[src]

impl PbPrint for NotLeader[src]

impl ProtobufValue for NotLeader[src]

impl StructuralPartialEq for NotLeader[src]

Auto Trait Implementations

impl RefUnwindSafe for NotLeader

impl Send for NotLeader

impl Sync for NotLeader

impl Unpin for NotLeader

impl UnwindSafe for NotLeader

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.