pub struct SendSnapshotRequest {
pub space: GraphSpaceID,
pub part: PartitionID,
pub term: TermID,
pub committed_log_id: LogID,
pub committed_log_term: TermID,
pub leader_addr: String,
pub leader_port: Port,
pub rows: Vec<Vec<u8>>,
pub total_size: i64,
pub total_count: i64,
pub done: bool,
/* private fields */
}
Fields§
§space: GraphSpaceID
§part: PartitionID
§term: TermID
§committed_log_id: LogID
§committed_log_term: TermID
§leader_addr: String
§leader_port: Port
§rows: Vec<Vec<u8>>
§total_size: i64
§total_count: i64
§done: bool
Trait Implementations§
source§impl Clone for SendSnapshotRequest
impl Clone for SendSnapshotRequest
source§fn clone(&self) -> SendSnapshotRequest
fn clone(&self) -> SendSnapshotRequest
Returns a copy 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 SendSnapshotRequest
impl Debug for SendSnapshotRequest
source§impl Default for SendSnapshotRequest
impl Default for SendSnapshotRequest
source§impl<P> Deserialize<P> for SendSnapshotRequestwhere
P: ProtocolReader,
impl<P> Deserialize<P> for SendSnapshotRequestwhere
P: ProtocolReader,
source§impl Hash for SendSnapshotRequest
impl Hash for SendSnapshotRequest
source§impl Ord for SendSnapshotRequest
impl Ord for SendSnapshotRequest
source§fn cmp(&self, other: &SendSnapshotRequest) -> Ordering
fn cmp(&self, other: &SendSnapshotRequest) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SendSnapshotRequest> for SendSnapshotRequest
impl PartialEq<SendSnapshotRequest> for SendSnapshotRequest
source§fn eq(&self, other: &SendSnapshotRequest) -> bool
fn eq(&self, other: &SendSnapshotRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SendSnapshotRequest> for SendSnapshotRequest
impl PartialOrd<SendSnapshotRequest> for SendSnapshotRequest
source§fn partial_cmp(&self, other: &SendSnapshotRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &SendSnapshotRequest) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more