pub enum IdentitySource {
Install([u8; 32]),
Generate,
}Expand description
A staged PROP_DEV_PRIVATE_KEY provisioning request (see
Effect::ProvisionIdentity).
Variants§
Install([u8; 32])
Install this Ed25519 private key.
Generate
Generate a fresh private key on-device; it must come from a cryptographically secure random number generator and never leave the device.
Trait Implementations§
Source§impl Clone for IdentitySource
impl Clone for IdentitySource
Source§fn clone(&self) -> IdentitySource
fn clone(&self) -> IdentitySource
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IdentitySource
Auto Trait Implementations§
impl Freeze for IdentitySource
impl RefUnwindSafe for IdentitySource
impl Send for IdentitySource
impl Sync for IdentitySource
impl Unpin for IdentitySource
impl UnwindSafe for IdentitySource
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)