pub enum SnapshotFrom {
Archive,
Dir,
}
Expand description
When constructing a bank a snapshot, traditionally the snapshot was from a snapshot archive. Now, the snapshot can be from a snapshot directory, or from a snapshot archive. This is the flag to indicate which.
Variants§
Trait Implementations§
source§impl Clone for SnapshotFrom
impl Clone for SnapshotFrom
source§fn clone(&self) -> SnapshotFrom
fn clone(&self) -> SnapshotFrom
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 SnapshotFrom
impl Debug for SnapshotFrom
source§impl PartialEq for SnapshotFrom
impl PartialEq for SnapshotFrom
source§fn eq(&self, other: &SnapshotFrom) -> bool
fn eq(&self, other: &SnapshotFrom) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SnapshotFrom
impl Eq for SnapshotFrom
impl StructuralEq for SnapshotFrom
impl StructuralPartialEq for SnapshotFrom
Auto Trait Implementations§
impl RefUnwindSafe for SnapshotFrom
impl Send for SnapshotFrom
impl Sync for SnapshotFrom
impl Unpin for SnapshotFrom
impl UnwindSafe for SnapshotFrom
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.