pub struct LocalSshAuthHandler;Expand description
Implementation of SshAuthHandler that prompts locally for authentication and verification
events
Trait Implementations§
Source§impl SshAuthHandler for LocalSshAuthHandler
impl SshAuthHandler for LocalSshAuthHandler
Source§fn on_authenticate<'life0, 'async_trait>(
&'life0 self,
event: SshAuthEvent,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_authenticate<'life0, 'async_trait>(
&'life0 self,
event: SshAuthEvent,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Invoked whenever a series of authentication prompts need to be displayed and responded to,
receiving one event at a time and returning a collection of answers matching the total
prompts provided in the event
Source§fn on_verify_host<'life0, 'life1, 'async_trait>(
&'life0 self,
host: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_verify_host<'life0, 'life1, 'async_trait>(
&'life0 self,
host: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Invoked when the host is unknown for a new ssh connection, receiving the host as a str and
returning true if the host is acceptable or false if the host (and thereby ssh client)
should be declined
Invoked when receiving a banner from the ssh server, receiving the banner as a str, useful
to display to the user
Auto Trait Implementations§
impl Freeze for LocalSshAuthHandler
impl RefUnwindSafe for LocalSshAuthHandler
impl Send for LocalSshAuthHandler
impl Sync for LocalSshAuthHandler
impl Unpin for LocalSshAuthHandler
impl UnwindSafe for LocalSshAuthHandler
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