Struct kvproto::pdpb::GetMembersResponse[][src]

pub struct GetMembersResponse {
    pub header: SingularPtrField<ResponseHeader>,
    pub members: RepeatedField<Member>,
    pub leader: SingularPtrField<Member>,
    pub etcd_leader: SingularPtrField<Member>,
    pub tso_allocator_leaders: HashMap<String, Member>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

header: SingularPtrField<ResponseHeader>members: RepeatedField<Member>leader: SingularPtrField<Member>etcd_leader: SingularPtrField<Member>tso_allocator_leaders: HashMap<String, Member>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl GetMembersResponse[src]

pub fn new() -> GetMembersResponse[src]

pub fn get_header(&self) -> &ResponseHeader[src]

pub fn clear_header(&mut self)[src]

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

pub fn set_header(&mut self, v: ResponseHeader)[src]

pub fn mut_header(&mut self) -> &mut ResponseHeader[src]

pub fn take_header(&mut self) -> ResponseHeader[src]

pub fn get_members(&self) -> &[Member][src]

pub fn clear_members(&mut self)[src]

pub fn set_members(&mut self, v: RepeatedField<Member>)[src]

pub fn mut_members(&mut self) -> &mut RepeatedField<Member>[src]

pub fn take_members(&mut self) -> RepeatedField<Member>[src]

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

pub fn clear_leader(&mut self)[src]

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

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

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

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

pub fn get_etcd_leader(&self) -> &Member[src]

pub fn clear_etcd_leader(&mut self)[src]

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

pub fn set_etcd_leader(&mut self, v: Member)[src]

pub fn mut_etcd_leader(&mut self) -> &mut Member[src]

pub fn take_etcd_leader(&mut self) -> Member[src]

pub fn get_tso_allocator_leaders(&self) -> &HashMap<String, Member>[src]

pub fn clear_tso_allocator_leaders(&mut self)[src]

pub fn set_tso_allocator_leaders(&mut self, v: HashMap<String, Member>)[src]

pub fn mut_tso_allocator_leaders(&mut self) -> &mut HashMap<String, Member>[src]

pub fn take_tso_allocator_leaders(&mut self) -> HashMap<String, Member>[src]

Trait Implementations

impl Clear for GetMembersResponse[src]

impl Clone for GetMembersResponse[src]

impl Debug for GetMembersResponse[src]

impl Default for GetMembersResponse[src]

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

impl Message for GetMembersResponse[src]

impl PartialEq<GetMembersResponse> for GetMembersResponse[src]

impl PbPrint for GetMembersResponse[src]

impl ProtobufValue for GetMembersResponse[src]

impl StructuralPartialEq for GetMembersResponse[src]

Auto Trait Implementations

impl RefUnwindSafe for GetMembersResponse

impl Send for GetMembersResponse

impl Sync for GetMembersResponse

impl Unpin for GetMembersResponse

impl UnwindSafe for GetMembersResponse

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.