#[non_exhaustive]pub enum SeedOutcome {
Seeded {
kid: String,
},
AlreadySeeded {
kid: String,
same_secret: bool,
},
}Expand description
Result of [EngineBackend::seed_waitpoint_hmac_secret].
Seeded— the backend had nocurrent_kid(or no row in the global keystore) and installedkidas the active signing kid.AlreadySeeded— a row forkidis already installed.same_secretreports whether the stored secret bytes match the caller-supplied hex;falsemeans the caller should pick a fresh kid for rotation rather than silently re-installing under the existing kid.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for SeedOutcome
impl Clone for SeedOutcome
Source§fn clone(&self) -> SeedOutcome
fn clone(&self) -> SeedOutcome
Returns a duplicate 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 SeedOutcome
impl Debug for SeedOutcome
Source§impl PartialEq for SeedOutcome
impl PartialEq for SeedOutcome
impl Eq for SeedOutcome
impl StructuralPartialEq for SeedOutcome
Auto Trait Implementations§
impl Freeze for SeedOutcome
impl RefUnwindSafe for SeedOutcome
impl Send for SeedOutcome
impl Sync for SeedOutcome
impl Unpin for SeedOutcome
impl UnsafeUnpin for SeedOutcome
impl UnwindSafe for SeedOutcome
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