Struct Sftp

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

See Sftp.

Implementations§

Source§

impl Sftp

Source

pub async fn open_mode( &self, filename: &Path, flags: OpenFlags, mode: i32, open_type: OpenType, ) -> Result<File, Error>

See open_mode.

Source

pub async fn open(&self, filename: &Path) -> Result<File, Error>

See open.

Source

pub async fn create(&self, filename: &Path) -> Result<File, Error>

See create.

Source

pub async fn opendir(&self, dirname: &Path) -> Result<File, Error>

See opendir.

Source

pub async fn readdir( &self, dirname: &Path, ) -> Result<Vec<(PathBuf, FileStat)>, Error>

See readdir.

Source

pub async fn mkdir(&self, filename: &Path, mode: i32) -> Result<(), Error>

See mkdir.

Source

pub async fn rmdir(&self, filename: &Path) -> Result<(), Error>

See rmdir.

Source

pub async fn stat(&self, filename: &Path) -> Result<FileStat, Error>

See stat.

Source

pub async fn lstat(&self, filename: &Path) -> Result<FileStat, Error>

See lstat.

Source

pub async fn setstat( &self, filename: &Path, stat: FileStat, ) -> Result<(), Error>

See setstat.

See symlink.

See readlink.

Source

pub async fn realpath(&self, path: &Path) -> Result<PathBuf, Error>

See realpath.

Source

pub async fn rename( &self, src: &Path, dst: &Path, flags: Option<RenameFlags>, ) -> Result<(), Error>

See rename.

See unlink.

Source

pub async fn shutdown(self) -> Result<(), Error>

See unlink.

Auto Trait Implementations§

§

impl Freeze for Sftp

§

impl !RefUnwindSafe for Sftp

§

impl Send for Sftp

§

impl Sync for Sftp

§

impl Unpin for Sftp

§

impl !UnwindSafe for Sftp

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.