pub struct FtpClient { /* private fields */ }Implementations§
Source§impl FtpClient
impl FtpClient
pub fn new( addr: &str, port: u16, email: &str, token: &str, user_id: &str, ) -> Self
pub fn connect(&mut self) -> Result<(), FtpError>
pub fn disconnect(&mut self)
pub fn is_connected(&self) -> bool
pub fn download_file( &mut self, remote_path: &str, local_path: &str, ) -> Result<(), FtpError>
pub fn upload_file( &mut self, local_path: &str, remote_path: &str, ) -> Result<(), FtpError>
pub fn current_directory(&mut self) -> Result<String, FtpError>
pub fn check_if_directory_exists(&mut self, dir: &str) -> Result<bool, FtpError>
pub fn make_directory(&mut self, dir_name: &str) -> Result<(), FtpError>
pub fn change_directory(&mut self, dir: &str) -> Result<(), FtpError>
pub fn remove_directory_recursive( &mut self, dir_path: &str, ) -> Result<(), FtpError>
pub fn remove_file(&mut self, path: &str) -> Result<(), FtpError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FtpClient
impl RefUnwindSafe for FtpClient
impl Send for FtpClient
impl Sync for FtpClient
impl Unpin for FtpClient
impl UnwindSafe for FtpClient
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request