pub struct SshConnectionBuilder { /* private fields */ }Expand description
Builder for SSH connections
Implementations§
Source§impl SshConnectionBuilder
impl SshConnectionBuilder
pub fn new() -> Self
pub fn host<S: Into<String>>(self, host: S) -> Self
pub fn port(self, port: u16) -> Self
pub fn user<S: Into<String>>(self, user: S) -> Self
pub fn identity_file(self, path: PathBuf) -> Self
pub fn timeout(self, timeout: Duration) -> Self
pub fn build(self) -> SshConnection
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SshConnectionBuilder
impl RefUnwindSafe for SshConnectionBuilder
impl Send for SshConnectionBuilder
impl Sync for SshConnectionBuilder
impl Unpin for SshConnectionBuilder
impl UnwindSafe for SshConnectionBuilder
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