Struct async_ssh2_lite::sftp::AsyncSftp
source · pub struct AsyncSftp<S> { /* private fields */ }
Implementations§
source§impl<S> AsyncSftp<S>
impl<S> AsyncSftp<S>
pub async fn open_mode( &self, filename: &Path, flags: OpenFlags, mode: i32, open_type: OpenType, ) -> Result<AsyncFile<S>, Error>
pub async fn open(&self, filename: &Path) -> Result<AsyncFile<S>, Error>
pub async fn create(&self, filename: &Path) -> Result<AsyncFile<S>, Error>
pub async fn opendir(&self, dirname: &Path) -> Result<AsyncFile<S>, Error>
pub async fn readdir( &self, dirname: &Path, ) -> Result<Vec<(PathBuf, FileStat)>, Error>
pub async fn mkdir(&self, filename: &Path, mode: i32) -> Result<(), Error>
pub async fn rmdir(&self, filename: &Path) -> Result<(), Error>
pub async fn stat(&self, filename: &Path) -> Result<FileStat, Error>
pub async fn lstat(&self, filename: &Path) -> Result<FileStat, Error>
pub async fn setstat( &self, filename: &Path, stat: FileStat, ) -> Result<(), Error>
pub async fn symlink(&self, path: &Path, target: &Path) -> Result<(), Error>
pub async fn readlink(&self, path: &Path) -> Result<PathBuf, Error>
pub async fn realpath(&self, path: &Path) -> Result<PathBuf, Error>
pub async fn rename( &self, src: &Path, dst: &Path, flags: Option<RenameFlags>, ) -> Result<(), Error>
pub async fn unlink(&self, file: &Path) -> Result<(), Error>
pub async fn shutdown(&mut self) -> Result<(), Error>
Auto Trait Implementations§
impl<S> Freeze for AsyncSftp<S>
impl<S> !RefUnwindSafe for AsyncSftp<S>
impl<S> Send for AsyncSftp<S>
impl<S> Sync for AsyncSftp<S>
impl<S> Unpin for AsyncSftp<S>
impl<S> !UnwindSafe for AsyncSftp<S>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more