#[non_exhaustive]pub enum Custody {
Software,
Hardware,
Service,
}Expand description
Where a private key lives, as far as its holder can say.
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.
Software
In this process’s memory.
Hardware
In a hardware device – an HSM, a TPM, a smart card – that performs the operation itself.
Service
In a remote service that performs the operation, such as a cloud key management service.
Implementations§
Trait Implementations§
impl Copy for Custody
impl Eq for Custody
impl StructuralPartialEq for Custody
Auto Trait Implementations§
impl Freeze for Custody
impl RefUnwindSafe for Custody
impl Send for Custody
impl Sync for Custody
impl Unpin for Custody
impl UnsafeUnpin for Custody
impl UnwindSafe for Custody
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