pub struct SFTPFileSystem<'a> { /* private fields */ }Expand description
Structure implementing FileSystem trait to store on a SFTP server
Implementations§
Trait Implementations§
Source§impl<'a> FileSystem for SFTPFileSystem<'a>
impl<'a> FileSystem for SFTPFileSystem<'a>
type FSError = ChiconError
type File = SFTPFile<'a>
type DirEntry = SFTPDirEntry
fn chmod<P: AsRef<Path>>( &self, path: P, perm: Permissions, ) -> Result<(), Self::FSError>
fn create_file<P: AsRef<Path>>( &self, path: P, ) -> Result<Self::File, Self::FSError>
fn create_dir<P: AsRef<Path>>(&self, path: P) -> Result<(), Self::FSError>
fn create_dir_all<P: AsRef<Path>>(&self, path: P) -> Result<(), Self::FSError>
fn open_file<P: AsRef<Path>>( &self, path: P, ) -> Result<Self::File, Self::FSError>
fn read_dir<P: AsRef<Path>>( &self, path: P, ) -> Result<Vec<Self::DirEntry>, Self::FSError>
fn remove_file<P: AsRef<Path>>(&self, path: P) -> Result<(), Self::FSError>
fn remove_dir<P: AsRef<Path>>(&self, path: P) -> Result<(), Self::FSError>
fn remove_dir_all<P: AsRef<Path>>(&self, path: P) -> Result<(), Self::FSError>
fn rename<P: AsRef<Path>>(&self, from: P, to: P) -> Result<(), Self::FSError>
Auto Trait Implementations§
impl<'a> Freeze for SFTPFileSystem<'a>
impl<'a> RefUnwindSafe for SFTPFileSystem<'a>
impl<'a> Send for SFTPFileSystem<'a>
impl<'a> Sync for SFTPFileSystem<'a>
impl<'a> Unpin for SFTPFileSystem<'a>
impl<'a> UnwindSafe for SFTPFileSystem<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more