Struct raft::eraftpb::SnapshotMetadata[][src]

pub struct SnapshotMetadata {
    pub conf_state: SingularPtrField<ConfState>,
    pub index: u64,
    pub term: u64,
    // some fields omitted
}

Fields

Methods

impl SnapshotMetadata
[src]

Trait Implementations

impl PartialEq for SnapshotMetadata
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for SnapshotMetadata
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for SnapshotMetadata
[src]

Returns the "default value" for a type. Read more

impl Message for SnapshotMetadata
[src]

True iff all required fields are initialized. Always returns true for protobuf 3. Read more

Update this message object with fields read from given stream.

Compute and cache size of this message and all nested messages

Write message to the stream. Read more

Get size previously computed by compute_size.

Get a reference to unknown fields.

Get a mutable reference to unknown fields.

View self as Any.

View self as mutable Any.

Convert boxed self to boxed Any.

Message descriptor for this message, used for reflection.

Create an empty message object.

Get message descriptor for message type.

Return a pointer to default immutable message.

Write the message to the stream. Read more

Write the message to the stream prepending the message with message length encoded as varint. Read more

Write the message to the vec, prepend the message with message length encoded as varint. Read more

Update this message object with fields read from given stream.

Check if all required fields of this object are initialized.

Write the message to the writer.

Write the message to bytes vec.

Write the message to bytes vec.

Write the message to the writer, prepend the message with message length encoded as varint. Read more

Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more

Get type id for downcasting.

impl Clear for SnapshotMetadata
[src]

Clear this make, make it equivalent to newly created object.

impl Debug for SnapshotMetadata
[src]

Formats the value using the given formatter. Read more

impl ProtobufValue for SnapshotMetadata
[src]

Auto Trait Implementations