Struct sshcerts::PrivateKey [−][src]
A type which represents an OpenSSH public key.
Fields
key_type: KeyTypeKey type.
kind: PrivateKeyKindThe kind of public key.
pubkey: PublicKeyThe corresponding public key
comment: Option<String>Associated comment, if any.
Implementations
impl PrivateKey[src]
pub fn from_path<P: AsRef<Path>>(path: P) -> Result<PrivateKey, Error>[src]
Reads an OpenSSH private key from a given path.
pub fn from_string(contents: &str) -> Result<PrivateKey, Error>[src]
Reads an OpenSSH private key from a given string.
Trait Implementations
impl Clone for PrivateKey[src]
fn clone(&self) -> PrivateKey[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for PrivateKey[src]
impl Into<Box<dyn Fn(&[u8]) + 'static + Sync + Send, Global>> for PrivateKey[src]
This is in this file to prevent a circular dependency between PrivateKey and the signer module.
impl PartialEq<PrivateKey> for PrivateKey[src]
fn eq(&self, other: &PrivateKey) -> bool[src]
fn ne(&self, other: &PrivateKey) -> bool[src]
impl StructuralPartialEq for PrivateKey[src]
Auto Trait Implementations
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnwindSafe for PrivateKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,