pub struct KeyPair { /* private fields */ }
Implementations
sourceimpl KeyPair
impl KeyPair
pub fn new() -> Self
pub fn from_path<P: AsRef<Path>>(
key_path: P,
key_type: KeyPairType
) -> SshResult<Self>
pub fn from_str(key_str: &str, key_type: KeyPairType) -> SshResult<Self>
pub fn get_blob(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KeyPair
impl Send for KeyPair
impl Sync for KeyPair
impl Unpin for KeyPair
impl UnwindSafe for KeyPair
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more