Struct kudu_pb::consensus_metadata::ConsensusStatePB
[−]
[src]
pub struct ConsensusStatePB { /* fields omitted */ }
Methods
impl ConsensusStatePB
[src]
fn new() -> ConsensusStatePB
fn default_instance() -> &'static ConsensusStatePB
fn clear_current_term(&mut self)
fn has_current_term(&self) -> bool
fn set_current_term(&mut self, v: i64)
fn get_current_term(&self) -> i64
fn clear_leader_uuid(&mut self)
fn has_leader_uuid(&self) -> bool
fn set_leader_uuid(&mut self, v: String)
fn mut_leader_uuid(&mut self) -> &mut String
fn take_leader_uuid(&mut self) -> String
fn get_leader_uuid(&self) -> &str
fn clear_config(&mut self)
fn has_config(&self) -> bool
fn set_config(&mut self, v: RaftConfigPB)
fn mut_config(&mut self) -> &mut RaftConfigPB
fn take_config(&mut self) -> RaftConfigPB
fn get_config(&self) -> &RaftConfigPB
Trait Implementations
impl PartialEq for ConsensusStatePB
[src]
fn eq(&self, __arg_0: &ConsensusStatePB) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ConsensusStatePB) -> bool
This method tests for !=
.
impl Clone for ConsensusStatePB
[src]
fn clone(&self) -> ConsensusStatePB
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for ConsensusStatePB
[src]
fn default() -> ConsensusStatePB
Returns the "default value" for a type. Read more