Struct openraft::raft::SnapshotResponse
source · pub struct SnapshotResponse<NID: NodeId> {
pub vote: Vote<NID>,
}
Expand description
The response to Raft::install_full_snapshot
API.
Fields§
§vote: Vote<NID>
Implementations§
Trait Implementations§
source§impl<'de, NID: NodeId> Deserialize<'de> for SnapshotResponse<NID>
impl<'de, NID: NodeId> Deserialize<'de> for SnapshotResponse<NID>
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
source§impl<NID: NodeId> Display for SnapshotResponse<NID>
impl<NID: NodeId> Display for SnapshotResponse<NID>
source§impl<NID: NodeId> From<SnapshotResponse<NID>> for InstallSnapshotResponse<NID>
impl<NID: NodeId> From<SnapshotResponse<NID>> for InstallSnapshotResponse<NID>
source§fn from(snap_resp: SnapshotResponse<NID>) -> Self
fn from(snap_resp: SnapshotResponse<NID>) -> Self
Converts to this type from the input type.
source§impl<NID: PartialEq + NodeId> PartialEq for SnapshotResponse<NID>
impl<NID: PartialEq + NodeId> PartialEq for SnapshotResponse<NID>
source§fn eq(&self, other: &SnapshotResponse<NID>) -> bool
fn eq(&self, other: &SnapshotResponse<NID>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<NID: NodeId> Serialize for SnapshotResponse<NID>
impl<NID: NodeId> Serialize for SnapshotResponse<NID>
impl<NID: Eq + NodeId> Eq for SnapshotResponse<NID>
impl<NID: NodeId> StructuralPartialEq for SnapshotResponse<NID>
Auto Trait Implementations§
impl<NID> Freeze for SnapshotResponse<NID>where
NID: Freeze,
impl<NID> RefUnwindSafe for SnapshotResponse<NID>where
NID: RefUnwindSafe,
impl<NID> Send for SnapshotResponse<NID>
impl<NID> Sync for SnapshotResponse<NID>
impl<NID> Unpin for SnapshotResponse<NID>where
NID: Unpin,
impl<NID> UnwindSafe for SnapshotResponse<NID>where
NID: UnwindSafe,
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