pub struct FileClient { /* private fields */ }Expand description
An async FTPS file client, similar to the Python version using curl. It can list files in a directory and download specific files.
Implementations§
Source§impl FileClient
impl FileClient
Sourcepub fn new(hostname: impl Into<String>, access_code: impl Into<String>) -> Self
pub fn new(hostname: impl Into<String>, access_code: impl Into<String>) -> Self
Create a new FileClient.
hostname: The FTP(S) server hostname.access_code: The password to use with user “bblp”.serial: Some identifier (unused in this snippet, but kept for parity).insecure: Iftrue, client will skip certificate validation.
Auto Trait Implementations§
impl Freeze for FileClient
impl RefUnwindSafe for FileClient
impl Send for FileClient
impl Sync for FileClient
impl Unpin for FileClient
impl UnwindSafe for FileClient
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