Enum ethcore::snapshot::RestorationStatus
source · [−]pub enum RestorationStatus {
Inactive,
Initializing {
chunks_done: u32,
},
Ongoing {
block_number: u64,
state_chunks: u32,
block_chunks: u32,
state_chunks_done: u32,
block_chunks_done: u32,
},
Failed,
}
Expand description
Statuses for restorations.
Variants
Inactive
No restoration.
Initializing
Fields
chunks_done: u32
Number of chunks done/imported
Restoration is initializing
Ongoing
Fields
block_number: u64
Block number specified in the manifest.
state_chunks: u32
Total number of state chunks.
block_chunks: u32
Total number of block chunks.
state_chunks_done: u32
Number of state chunks completed.
block_chunks_done: u32
Number of block chunks completed.
Ongoing restoration.
Failed
Failed restoration.
Trait Implementations
sourceimpl Clone for RestorationStatus
impl Clone for RestorationStatus
sourcepub fn clone(&self) -> RestorationStatus
pub fn clone(&self) -> RestorationStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RestorationStatus
impl Debug for RestorationStatus
sourceimpl PartialEq<RestorationStatus> for RestorationStatus
impl PartialEq<RestorationStatus> for RestorationStatus
sourcepub fn eq(&self, other: &RestorationStatus) -> bool
pub fn eq(&self, other: &RestorationStatus) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcepub fn ne(&self, other: &RestorationStatus) -> bool
pub fn ne(&self, other: &RestorationStatus) -> bool
This method tests for !=
.
impl Copy for RestorationStatus
impl Eq for RestorationStatus
impl StructuralEq for RestorationStatus
impl StructuralPartialEq for RestorationStatus
Auto Trait Implementations
impl RefUnwindSafe for RestorationStatus
impl Send for RestorationStatus
impl Sync for RestorationStatus
impl Unpin for RestorationStatus
impl UnwindSafe for RestorationStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more