[][src]Struct async_ssh2::Sftp

pub struct Sftp { /* fields omitted */ }

See Sftp.

Implementations

impl Sftp[src]

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

See open_mode.

pub async fn open<'_, '_>(&'_ self, filename: &'_ Path) -> Result<File, Error>[src]

See open.

pub async fn create<'_, '_>(&'_ self, filename: &'_ Path) -> Result<File, Error>[src]

See create.

pub async fn opendir<'_, '_>(&'_ self, dirname: &'_ Path) -> Result<File, Error>[src]

See opendir.

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

See readdir.

pub async fn mkdir<'_, '_>(
    &'_ self,
    filename: &'_ Path,
    mode: i32
) -> Result<(), Error>
[src]

See mkdir.

pub async fn rmdir<'_, '_>(&'_ self, filename: &'_ Path) -> Result<(), Error>[src]

See rmdir.

pub async fn stat<'_, '_>(
    &'_ self,
    filename: &'_ Path
) -> Result<FileStat, Error>
[src]

See stat.

pub async fn lstat<'_, '_>(
    &'_ self,
    filename: &'_ Path
) -> Result<FileStat, Error>
[src]

See lstat.

pub async fn setstat<'_, '_>(
    &'_ self,
    filename: &'_ Path,
    stat: FileStat
) -> Result<(), Error>
[src]

See setstat.

See symlink.

See readlink.

pub async fn realpath<'_, '_>(
    &'_ self,
    path: &'_ Path
) -> Result<PathBuf, Error>
[src]

See realpath.

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

See rename.

See unlink.

pub async fn shutdown(__arg0: Self) -> Result<(), Error>[src]

See unlink.

Auto Trait Implementations

impl !RefUnwindSafe for Sftp

impl Send for Sftp

impl Sync for Sftp

impl Unpin for Sftp

impl !UnwindSafe for Sftp

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.