pub struct MacOsSshAgentAdapter;Expand description
Registers keys with the macOS system SSH agent using ssh-add.
Usage:
ⓘ
let adapter = MacOsSshAgentAdapter;
adapter.register_key(Path::new("/tmp/auths-key-abc.pem"))?;Trait Implementations§
Source§impl SshAgentPort for MacOsSshAgentAdapter
impl SshAgentPort for MacOsSshAgentAdapter
Source§fn register_key(&self, key_path: &Path) -> Result<(), SshAgentError>
fn register_key(&self, key_path: &Path) -> Result<(), SshAgentError>
Registers a PEM key file with the system SSH agent. Read more
Auto Trait Implementations§
impl Freeze for MacOsSshAgentAdapter
impl RefUnwindSafe for MacOsSshAgentAdapter
impl Send for MacOsSshAgentAdapter
impl Sync for MacOsSshAgentAdapter
impl Unpin for MacOsSshAgentAdapter
impl UnsafeUnpin for MacOsSshAgentAdapter
impl UnwindSafe for MacOsSshAgentAdapter
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