pub struct Ssh2Session { /* private fields */ }
Expand description

Represents an ssh2 session

Implementations

Connect to a remote TCP server using SSH

Host this session is connected to

Port this session is connected to on remote host

Authenticates the Ssh2Session if not already authenticated

Consume Ssh2Session and produce a distant Session that is connected to a remote distant server that is spawned using the ssh session

Consume Ssh2Session and produce a distant SessionInfo representing a remote distant server that is spawned using the ssh session

Consume Ssh2Session and produce a distant Session that is powered by an ssh client underneath

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

Applies the Compat adapter by value. Read more

Applies the Compat adapter by shared reference. Read more

Applies the Compat adapter by mutable reference. 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.

Should always be Self

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.