Struct t_ssh_client::ClientBuilder
source · [−]pub struct ClientBuilder { /* private fields */ }
Implementations
sourceimpl ClientBuilder
impl ClientBuilder
pub fn new() -> Self
pub fn username<S: ToString>(&mut self, username: S) -> &mut Self
pub fn auth(&mut self, auth: AuthMethod) -> &mut Self
pub fn connect_timeout(&mut self, timeout: Duration) -> &mut Self
pub async fn connect<T: ToSocketAddrs>(
&self,
addr: T
) -> Result<Client, ClientError>
Auto Trait Implementations
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnwindSafe for ClientBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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