pub struct InstallSnapshotRequest {
pub term: Term,
pub leader_id: NodeId,
pub last_included_index: LogIndex,
pub last_included_term: Term,
pub offset: u64,
pub data: Vec<u8>,
pub done: bool,
pub checksum: Option<u32>,
}Expand description
Request to install a snapshot.
Fields§
§term: Term§leader_id: NodeId§last_included_index: LogIndex§last_included_term: Term§offset: u64§data: Vec<u8>§done: bool§checksum: Option<u32>CRC32 checksum of the full snapshot data (set when done=true). None for backward compatibility with older nodes.
Trait Implementations§
Source§impl Clone for InstallSnapshotRequest
impl Clone for InstallSnapshotRequest
Source§fn clone(&self) -> InstallSnapshotRequest
fn clone(&self) -> InstallSnapshotRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstallSnapshotRequest
impl Debug for InstallSnapshotRequest
Source§impl<'de> Deserialize<'de> for InstallSnapshotRequest
impl<'de> Deserialize<'de> for InstallSnapshotRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InstallSnapshotRequest
impl RefUnwindSafe for InstallSnapshotRequest
impl Send for InstallSnapshotRequest
impl Sync for InstallSnapshotRequest
impl Unpin for InstallSnapshotRequest
impl UnsafeUnpin for InstallSnapshotRequest
impl UnwindSafe for InstallSnapshotRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more