Struct openssh_mux_client::Connection[][src]

pub struct Connection { /* fields omitted */ }
Expand description

Cancel safety

All methods of this struct is not cancellation safe.

Implementations

Send a ping to the server and return pid of the ssh mux server if it is still alive.

Opens a new session.

Consumes self so that users would not be able to create multiple sessions or perform other operations during the session that might complicates the handling of packets received from the ssh mux server.

Two additional cases that the client must cope with are it receiving a signal itself (from the ssh mux server) and the server disconnecting without sending an exit message.

Convenient function for opening a new sftp session, uses open_new_session underlying.

Request for local/remote port forwarding.

Warning

Local port forwarding hasn’t been tested yet.

UNTESTED Return remote port opened for dynamic forwarding.

Request the master to stop accepting new multiplexing requests and remove its listener socket.

Trait Implementations

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

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.