pub enum SnapshotRequestType {
Snapshot,
EpochAccountsHash,
}
Expand description
What type of request is this?
The snapshot request has been expanded to support more than just snapshots. This is confusing, but can be resolved by renaming this type; or better, by creating an enum with variants that wrap the fields-of-interest for each request.
Variants§
Trait Implementations§
source§impl Clone for SnapshotRequestType
impl Clone for SnapshotRequestType
source§fn clone(&self) -> SnapshotRequestType
fn clone(&self) -> SnapshotRequestType
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 SnapshotRequestType
impl Debug for SnapshotRequestType
source§impl PartialEq<SnapshotRequestType> for SnapshotRequestType
impl PartialEq<SnapshotRequestType> for SnapshotRequestType
source§fn eq(&self, other: &SnapshotRequestType) -> bool
fn eq(&self, other: &SnapshotRequestType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SnapshotRequestType
impl Eq for SnapshotRequestType
impl StructuralEq for SnapshotRequestType
impl StructuralPartialEq for SnapshotRequestType
Auto Trait Implementations§
impl RefUnwindSafe for SnapshotRequestType
impl Send for SnapshotRequestType
impl Sync for SnapshotRequestType
impl Unpin for SnapshotRequestType
impl UnwindSafe for SnapshotRequestType
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.