Struct raft::eraftpb::SnapshotMetadata
[−]
[src]
pub struct SnapshotMetadata { pub conf_state: SingularPtrField<ConfState>, pub index: u64, pub term: u64, // some fields omitted }
Fields
conf_state: SingularPtrField<ConfState>
index: u64
term: u64
Methods
impl SnapshotMetadata
[src]
pub fn new() -> SnapshotMetadata
[src]
pub fn default_instance() -> &'static SnapshotMetadata
[src]
pub fn clear_conf_state(&mut self)
[src]
pub fn has_conf_state(&self) -> bool
[src]
pub fn set_conf_state(&mut self, v: ConfState)
[src]
pub fn mut_conf_state(&mut self) -> &mut ConfState
[src]
pub fn take_conf_state(&mut self) -> ConfState
[src]
pub fn get_conf_state(&self) -> &ConfState
[src]
pub fn clear_index(&mut self)
[src]
pub fn set_index(&mut self, v: u64)
[src]
pub fn get_index(&self) -> u64
[src]
pub fn clear_term(&mut self)
[src]
pub fn set_term(&mut self, v: u64)
[src]
pub fn get_term(&self) -> u64
[src]
Trait Implementations
impl PartialEq for SnapshotMetadata
[src]
fn eq(&self, __arg_0: &SnapshotMetadata) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SnapshotMetadata) -> bool
[src]
This method tests for !=
.
impl Clone for SnapshotMetadata
[src]
fn clone(&self) -> SnapshotMetadata
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for SnapshotMetadata
[src]
fn default() -> SnapshotMetadata
[src]
Returns the "default value" for a type. Read more
impl Sync for SnapshotMetadata
[src]
impl Message for SnapshotMetadata
[src]
fn is_initialized(&self) -> bool
[src]
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>
[src]
fn compute_size(&self) -> u32
[src]
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
[src]
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32
[src]
fn get_unknown_fields(&self) -> &UnknownFields
[src]
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
[src]
fn as_any(&self) -> &Any
[src]
fn as_any_mut(&mut self) -> &mut Any
[src]
fn into_any(self: Box<Self>) -> Box<Any>
[src]
fn descriptor(&self) -> &'static MessageDescriptor
[src]
fn write_to(&self, os: &mut CodedOutputStream) -> Result<(), ProtobufError>
[src]
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> Result<(), ProtobufError>
[src]
&self,
os: &mut CodedOutputStream
) -> Result<(), ProtobufError>
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8>
) -> Result<(), ProtobufError>
[src]
&self,
vec: &mut Vec<u8>
) -> Result<(), ProtobufError>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
[src]
fn check_initialized(&self) -> Result<(), ProtobufError>
[src]
fn write_to_writer(&self, w: &mut Write) -> Result<(), ProtobufError>
[src]
fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>
[src]
fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
[src]
fn write_length_delimited_to_writer(
&self,
w: &mut Write
) -> Result<(), ProtobufError>
[src]
&self,
w: &mut Write
) -> Result<(), ProtobufError>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
[src]
fn type_id(&self) -> TypeId
[src]
impl MessageStatic for SnapshotMetadata
[src]
fn new() -> SnapshotMetadata
[src]
fn descriptor_static(_: Option<SnapshotMetadata>) -> &'static MessageDescriptor
[src]
impl Clear for SnapshotMetadata
[src]
impl Debug for SnapshotMetadata
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more