pub enum IdentityRetrievalModes<'a> {
FromFile {
password: &'a str,
id_path: &'a str,
},
FromPrivateKey {
private_key: &'a str,
},
FromIdIntoFile {
id: Uuid,
password: &'a str,
id_path: &'a str,
},
}
Variants§
FromFile
hoprd starts with a previously generated identitiy file. If none is present, create a new one
Fields
FromPrivateKey
hoprd receives at startup a private which it will use for the entire runtime. The private stays in memory and thus remains fluent
FromIdIntoFile
takes a private key and create an identity file at the provided file destination
Trait Implementations§
Source§impl TryFrom<IdentityRetrievalModes<'_>> for HoprKeys
impl TryFrom<IdentityRetrievalModes<'_>> for HoprKeys
Source§type Error = KeyPairError
type Error = KeyPairError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl<'a> Freeze for IdentityRetrievalModes<'a>
impl<'a> RefUnwindSafe for IdentityRetrievalModes<'a>
impl<'a> Send for IdentityRetrievalModes<'a>
impl<'a> Sync for IdentityRetrievalModes<'a>
impl<'a> Unpin for IdentityRetrievalModes<'a>
impl<'a> UnwindSafe for IdentityRetrievalModes<'a>
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