pub struct ReconnectingSftp { /* private fields */ }Implementations§
Source§impl ReconnectingSftp
impl ReconnectingSftp
pub fn connect( host: &str, port: u16, user: Option<&str>, identity: Option<&str>, ) -> SftpResult<Self>
Sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
Check if the session is currently connected.
pub fn realpath(&self, path: &str) -> SftpResult<String>
pub fn lstat(&self, path: &str) -> SftpResult<FileAttr>
pub fn setstat(&self, path: &str, attrs: &FileAttr) -> SftpResult<()>
pub fn readdir(&self, path: &str) -> SftpResult<Vec<DirEntry>>
pub fn open(&self, path: &str, flags: u32, mode: u32) -> SftpResult<Vec<u8>>
pub fn close(&self, handle: &[u8]) -> SftpResult<()>
pub fn read(&self, handle: &[u8], offset: u64, len: u32) -> SftpResult<Vec<u8>>
pub fn write(&self, handle: &[u8], offset: u64, data: &[u8]) -> SftpResult<()>
pub fn mkdir(&self, path: &str, mode: u32) -> SftpResult<()>
pub fn rmdir(&self, path: &str) -> SftpResult<()>
pub fn remove(&self, path: &str) -> SftpResult<()>
pub fn rename(&self, from: &str, to: &str) -> SftpResult<()>
Auto Trait Implementations§
impl !Freeze for ReconnectingSftp
impl RefUnwindSafe for ReconnectingSftp
impl Send for ReconnectingSftp
impl Sync for ReconnectingSftp
impl Unpin for ReconnectingSftp
impl UnsafeUnpin for ReconnectingSftp
impl UnwindSafe for ReconnectingSftp
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