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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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