pub enum IdentityResolution {
Found {
key: PrivateKey,
path: PathBuf,
},
Encrypted {
path: PathBuf,
},
NotFound,
}Expand description
Result returned by find_identity.
Variants§
Found
A key was loaded and is ready to use.
Fields
§
key: PrivateKeyThe loaded private key.
Encrypted
A key file was found but is passphrase-protected.
NotFound
No usable key was found on any file path.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IdentityResolution
impl RefUnwindSafe for IdentityResolution
impl Send for IdentityResolution
impl Sync for IdentityResolution
impl Unpin for IdentityResolution
impl UnsafeUnpin for IdentityResolution
impl UnwindSafe for IdentityResolution
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