pub struct NativeSftpClient { /* private fields */ }Expand description
A native SFTP client backed by a dedicated protocol worker.
Implementations§
Source§impl NativeSftpClient
impl NativeSftpClient
pub fn connect(options: SftpConnectOptions) -> Result<Self, FileError>
Trait Implementations§
Source§impl Drop for NativeSftpClient
impl Drop for NativeSftpClient
Source§impl RemoteFilesystemClient for NativeSftpClient
impl RemoteFilesystemClient for NativeSftpClient
fn authenticated(&self) -> bool
Source§fn host_key_verified(&self) -> bool
fn host_key_verified(&self) -> bool
SFTP clients must override this with their host-key verification result.
fn capabilities(&self) -> FilesystemCapabilities
fn stat(&self, path: &str) -> Result<FilesystemEntry, FileError>
fn read(&self, path: &str) -> Result<Vec<u8>, FileError>
fn write( &self, path: &str, bytes: Vec<u8>, options: WriteOptions, _mutation: &FilesystemMutationContext, ) -> Result<FilesystemMutation, FileError>
fn entries_page( &self, path: &str, request: &FilesystemPageRequest, ) -> Result<FilesystemEntryPage, FileError>
fn mkdir( &self, path: &str, options: MkdirOptions, _mutation: &FilesystemMutationContext, ) -> Result<FilesystemMutation, FileError>
fn delete( &self, path: &str, options: DeleteOptions, _mutation: &FilesystemMutationContext, ) -> Result<FilesystemMutation, FileError>
fn copy( &self, source: &str, target: &str, options: CopyOptions, _mutation: &FilesystemMutationContext, ) -> Result<FilesystemMutation, FileError>
fn move_entry( &self, source: &str, target: &str, options: MoveOptions, _mutation: &FilesystemMutationContext, ) -> Result<FilesystemMutation, FileError>
fn close(&self) -> Result<(), FileError>
Source§fn transport_verified(&self) -> bool
fn transport_verified(&self) -> bool
HTTPS/WebDAV clients must override this when certificate or endpoint
verification is not guaranteed by the host transport.
Auto Trait Implementations§
impl Freeze for NativeSftpClient
impl RefUnwindSafe for NativeSftpClient
impl Send for NativeSftpClient
impl Sync for NativeSftpClient
impl Unpin for NativeSftpClient
impl UnsafeUnpin for NativeSftpClient
impl UnwindSafe for NativeSftpClient
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