Struct async_ssh2_lite::sftp::AsyncSftp
source · [−]pub struct AsyncSftp<S> { /* private fields */ }
Implementations
sourceimpl<S> AsyncSftp<S> where
S: AsyncSessionStream + Send + Sync + 'static,
impl<S> AsyncSftp<S> where
S: AsyncSessionStream + Send + Sync + 'static,
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>
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