Struct kudu_pb::consensus_metadata::ConsensusMetadataPB
[−]
[src]
pub struct ConsensusMetadataPB { /* fields omitted */ }
Methods
impl ConsensusMetadataPB
[src]
fn new() -> ConsensusMetadataPB
fn default_instance() -> &'static ConsensusMetadataPB
fn clear_committed_config(&mut self)
fn has_committed_config(&self) -> bool
fn set_committed_config(&mut self, v: RaftConfigPB)
fn mut_committed_config(&mut self) -> &mut RaftConfigPB
fn take_committed_config(&mut self) -> RaftConfigPB
fn get_committed_config(&self) -> &RaftConfigPB
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_voted_for(&mut self)
fn has_voted_for(&self) -> bool
fn set_voted_for(&mut self, v: String)
fn mut_voted_for(&mut self) -> &mut String
fn take_voted_for(&mut self) -> String
fn get_voted_for(&self) -> &str
Trait Implementations
impl PartialEq for ConsensusMetadataPB
[src]
fn eq(&self, __arg_0: &ConsensusMetadataPB) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ConsensusMetadataPB) -> bool
This method tests for !=
.
impl Clone for ConsensusMetadataPB
[src]
fn clone(&self) -> ConsensusMetadataPB
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 ConsensusMetadataPB
[src]
fn default() -> ConsensusMetadataPB
Returns the "default value" for a type. Read more
impl Sync for ConsensusMetadataPB
[src]
impl Message for ConsensusMetadataPB
[src]
fn is_initialized(&self) -> bool
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>
fn compute_size(&self) -> u32
fn write_to_with_cached_sizes(&self, os: &mut Write) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32
fn get_unknown_fields(&self) -> &UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn as_any(&self) -> &Any
fn as_any_mut(&mut self) -> &mut Any
fn into_any(self: Box<Self>) -> Box<Any>
fn descriptor(&self) -> &'static MessageDescriptor
fn write_to(&self, os: &mut Write) -> Result<(), ProtobufError>
fn write_length_delimited_to(&self, os: &mut Write) -> Result<(), ProtobufError>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
fn check_initialized(&self) -> Result<(), ProtobufError>
fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn type_id(&self) -> TypeId
impl MessageStatic for ConsensusMetadataPB
[src]
fn new() -> ConsensusMetadataPB
fn descriptor_static(_: Option<ConsensusMetadataPB>)
-> &'static MessageDescriptor
-> &'static MessageDescriptor