Struct async_ssh::NewSession

source ·
pub struct NewSession<S: AsyncRead + AsyncWrite> { /* private fields */ }
Expand description

A newly established, unauthenticated SSH session.

All you can really do with this in authenticate it using one of the authenticate_* methods. You’ll most likely want NewSession::authenticate_key.

Implementations§

Authenticate as the given user using the given keypair.

See also thrussh::client::Connection::authenticate_key.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.