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
sourcefn clone(&self) -> RestorationStatus
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
sourcefn eq(&self, other: &RestorationStatus) -> bool
fn eq(&self, other: &RestorationStatus) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RestorationStatus) -> bool
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<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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more