pub struct SftpFilesystem { /* private fields */ }Expand description
SFTP filesystem projection. Opening requires authentication and verified host keys in addition to the normal provider capability checks.
Implementations§
Source§impl SftpFilesystem
impl SftpFilesystem
pub fn connect( options: SftpConnectOptions, root: impl Into<String>, display: impl Into<String>, read_only: bool, ) -> Result<Self, FileError>
pub fn new( client: Rc<dyn RemoteFilesystemClient>, root: impl Into<String>, display: impl Into<String>, read_only: bool, ) -> Result<Self, FileError>
pub fn from_client<C: RemoteFilesystemClient + 'static>( client: C, root: impl Into<String>, display: impl Into<String>, read_only: bool, ) -> Result<Self, FileError>
Trait Implementations§
Source§impl IFilesystem for SftpFilesystem
impl IFilesystem for SftpFilesystem
fn descriptor(&self) -> FilesystemDescriptor
fn stat<'a>( &'a self, context: FilesystemCallContext, path: String, ) -> FilesystemFuture<'a, FilesystemEntry>
fn read<'a>( &'a self, context: FilesystemCallContext, path: String, ) -> FilesystemFuture<'a, Vec<u8>>
fn write<'a>( &'a self, context: FilesystemCallContext, path: String, bytes: Vec<u8>, options: WriteOptions, mutation: FilesystemMutationContext, ) -> FilesystemFuture<'a, FilesystemMutation>
fn entries_page<'a>( &'a self, context: FilesystemCallContext, path: String, request: FilesystemPageRequest, ) -> FilesystemFuture<'a, FilesystemEntryPage>
fn mkdir<'a>( &'a self, context: FilesystemCallContext, path: String, options: MkdirOptions, mutation: FilesystemMutationContext, ) -> FilesystemFuture<'a, FilesystemMutation>
fn delete<'a>( &'a self, context: FilesystemCallContext, path: String, options: DeleteOptions, mutation: FilesystemMutationContext, ) -> FilesystemFuture<'a, FilesystemMutation>
fn copy<'a>( &'a self, context: FilesystemCallContext, source: String, target: String, options: CopyOptions, mutation: FilesystemMutationContext, ) -> FilesystemFuture<'a, FilesystemMutation>
fn move_entry<'a>( &'a self, context: FilesystemCallContext, source: String, target: String, options: MoveOptions, mutation: FilesystemMutationContext, ) -> FilesystemFuture<'a, FilesystemMutation>
fn close<'a>( &'a self, context: FilesystemCallContext, ) -> FilesystemFuture<'a, ()>
fn capabilities(&self) -> FilesystemCapabilities
Auto Trait Implementations§
impl !RefUnwindSafe for SftpFilesystem
impl !Send for SftpFilesystem
impl !Sync for SftpFilesystem
impl !UnwindSafe for SftpFilesystem
impl Freeze for SftpFilesystem
impl Unpin for SftpFilesystem
impl UnsafeUnpin for SftpFilesystem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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