pub enum ImportOutcome {
Imported {
table: String,
items: usize,
},
SkippedExisting {
table: String,
},
}Expand description
Outcome of a startup export import.
The import is idempotent: in persistent-storage mode the snapshot is loaded before this import runs, so on a restart with the same import flags the target table is already present. Rather than erroring (which would refuse to boot), the import is skipped and the already-loaded table is left untouched.
Variants§
Imported
A fresh table was materialised from the export with items items.
SkippedExisting
A table of the same name already existed in state; import was skipped and the existing data was left untouched.
Trait Implementations§
Source§impl Clone for ImportOutcome
impl Clone for ImportOutcome
Source§fn clone(&self) -> ImportOutcome
fn clone(&self) -> ImportOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImportOutcome
impl Debug for ImportOutcome
impl Eq for ImportOutcome
Source§impl PartialEq for ImportOutcome
impl PartialEq for ImportOutcome
impl StructuralPartialEq for ImportOutcome
Auto Trait Implementations§
impl Freeze for ImportOutcome
impl RefUnwindSafe for ImportOutcome
impl Send for ImportOutcome
impl Sync for ImportOutcome
impl Unpin for ImportOutcome
impl UnsafeUnpin for ImportOutcome
impl UnwindSafe for ImportOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.