Struct async_ssh2_lite::AsyncSftp
source · [−]pub struct AsyncSftp<S> { /* private fields */ }
Implementations
sourceimpl<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>>
pub async fn open(&self, filename: &Path) -> Result<AsyncFile<S>>
pub async fn create(&self, filename: &Path) -> Result<AsyncFile<S>>
pub async fn opendir(&self, dirname: &Path) -> Result<AsyncFile<S>>
pub async fn readdir(&self, dirname: &Path) -> Result<Vec<(PathBuf, FileStat)>>
pub async fn mkdir(&self, filename: &Path, mode: i32) -> Result<()>
pub async fn rmdir(&self, filename: &Path) -> Result<()>
pub async fn stat(&self, filename: &Path) -> Result<FileStat>
pub async fn lstat(&self, filename: &Path) -> Result<FileStat>
pub async fn setstat(&self, filename: &Path, stat: FileStat) -> Result<()>
pub async fn symlink(&self, path: &Path, target: &Path) -> Result<()>
pub async fn readlink(&self, path: &Path) -> Result<PathBuf>
pub async fn realpath(&self, path: &Path) -> Result<PathBuf>
pub async fn rename(
&self,
src: &Path,
dst: &Path,
flags: Option<RenameFlags>
) -> Result<()>
pub async fn unlink(&self, file: &Path) -> Result<()>
Auto Trait Implementations
impl<S> !RefUnwindSafe for AsyncSftp<S>
impl<S> Send for AsyncSftp<S> where
S: Send + Sync,
impl<S> Sync for AsyncSftp<S> where
S: Send + Sync,
impl<S> Unpin for AsyncSftp<S>
impl<S> !UnwindSafe for AsyncSftp<S>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more