[−][src]Struct async_ssh2::Sftp
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]
&'_ self,
filename: &'_ Path,
flags: OpenFlags,
mode: i32,
open_type: OpenType
) -> Result<File, Error>
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]
&'_ self,
dirname: &'_ Path
) -> Result<Vec<(PathBuf, FileStat)>, Error>
See readdir.
pub async fn mkdir<'_, '_>(
&'_ self,
filename: &'_ Path,
mode: i32
) -> Result<(), Error>[src]
&'_ self,
filename: &'_ Path,
mode: i32
) -> Result<(), Error>
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]
&'_ self,
filename: &'_ Path
) -> Result<FileStat, Error>
See stat.
pub async fn lstat<'_, '_>(
&'_ self,
filename: &'_ Path
) -> Result<FileStat, Error>[src]
&'_ self,
filename: &'_ Path
) -> Result<FileStat, Error>
See lstat.
pub async fn setstat<'_, '_>(
&'_ self,
filename: &'_ Path,
stat: FileStat
) -> Result<(), Error>[src]
&'_ self,
filename: &'_ Path,
stat: FileStat
) -> Result<(), Error>
See setstat.
pub async fn symlink<'_, '_, '_>(
&'_ self,
path: &'_ Path,
target: &'_ Path
) -> Result<(), Error>[src]
&'_ self,
path: &'_ Path,
target: &'_ Path
) -> Result<(), Error>
See symlink.
pub async fn readlink<'_, '_>(
&'_ self,
path: &'_ Path
) -> Result<PathBuf, Error>[src]
&'_ self,
path: &'_ Path
) -> Result<PathBuf, Error>
See readlink.
pub async fn realpath<'_, '_>(
&'_ self,
path: &'_ Path
) -> Result<PathBuf, Error>[src]
&'_ self,
path: &'_ Path
) -> Result<PathBuf, Error>
See realpath.
pub async fn rename<'_, '_, '_>(
&'_ self,
src: &'_ Path,
dst: &'_ Path,
flags: Option<RenameFlags>
) -> Result<(), Error>[src]
&'_ self,
src: &'_ Path,
dst: &'_ Path,
flags: Option<RenameFlags>
) -> Result<(), Error>
See rename.
pub async fn unlink<'_, '_>(&'_ self, file: &'_ Path) -> Result<(), Error>[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,