[][src]Struct async_raft::raft::InstallSnapshotRequest

pub struct InstallSnapshotRequest {
    pub term: u64,
    pub leader_id: u64,
    pub last_included_index: u64,
    pub last_included_term: u64,
    pub offset: u64,
    pub data: Vec<u8>,
    pub done: bool,
}

An RPC sent by the Raft leader to send chunks of a snapshot to a follower (§7).

Fields

term: u64

The leader's current term.

leader_id: u64

The leader's ID. Useful in redirecting clients.

last_included_index: u64

The snapshot replaces all log entries up through and including this index.

last_included_term: u64

The term of the last_included_index.

offset: u64

The byte offset where this chunk of data is positioned in the snapshot file.

data: Vec<u8>

The raw bytes of the snapshot chunk, starting at offset.

done: bool

Will be true if this is the last chunk in the snapshot.

Trait Implementations

impl Clone for InstallSnapshotRequest[src]

impl Debug for InstallSnapshotRequest[src]

impl<'de> Deserialize<'de> for InstallSnapshotRequest[src]

impl Serialize for InstallSnapshotRequest[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]