pub struct Sftp { /* private fields */ }Expand description
One SFTP session with an instance.
Implementations§
Source§impl Sftp
impl Sftp
Sourcepub fn open(client: &Client, instance: &str, timeout: Duration) -> Result<Self>
pub fn open(client: &Client, instance: &str, timeout: Duration) -> Result<Self>
Open a session; every request then waits at most timeout.
Sourcepub fn stat(&mut self, path: &str) -> Result<Option<Stat>>
pub fn stat(&mut self, path: &str) -> Result<Option<Stat>>
stat (following symlinks); None if nothing is there.
Auto Trait Implementations§
impl Freeze for Sftp
impl RefUnwindSafe for Sftp
impl Send for Sftp
impl Sync for Sftp
impl Unpin for Sftp
impl UnsafeUnpin for Sftp
impl UnwindSafe for Sftp
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