pub struct SeedBackup { /* private fields */ }Expand description
A local backup of one Seed’s API-visible state, bound to that Seed.
Only SeedApiRuntime::backup builds one. SeedBackup::verify
re-reads manifest.json and every file, and the upgrade and recovery
paths also check the backup belongs to the Seed being changed (same
operator node id, device id and device public key).
Implementations§
Source§impl SeedBackup
impl SeedBackup
Sourcepub fn verify(&self) -> Result<(), RuntimeError>
pub fn verify(&self) -> Result<(), RuntimeError>
Re-hash the manifest and every file, and check the manifest still names this Seed and exactly these files (the required set included).
Trait Implementations§
Source§impl Clone for SeedBackup
impl Clone for SeedBackup
Source§impl Debug for SeedBackup
impl Debug for SeedBackup
impl Eq for SeedBackup
Source§impl PartialEq for SeedBackup
impl PartialEq for SeedBackup
impl StructuralPartialEq for SeedBackup
Auto Trait Implementations§
impl Freeze for SeedBackup
impl RefUnwindSafe for SeedBackup
impl Send for SeedBackup
impl Sync for SeedBackup
impl Unpin for SeedBackup
impl UnsafeUnpin for SeedBackup
impl UnwindSafe for SeedBackup
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§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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more