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

A file-oriented channel to a remote host.

Implementations

Create Sftp.

Close sftp connection

Return a new OpenOptions object.

Opens a file in write-only mode.

This function will create a file if it does not exist, and will truncate it if it does.

Attempts to open a file in read-only mode.

Fs defaults to the current working dir set by remote sftp-server, which usually is the home directory.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. 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

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.