pub enum FTP {
Normal(String, File),
Secure(String, File),
}
Variants§
Implementations§
Source§impl FTP
impl FTP
Sourcepub fn new(ip_addr: &str, file: File) -> FTP
pub fn new(ip_addr: &str, file: File) -> FTP
Returns and FTP with your ip and port
Parameters &str with ip and port and str with path to file
Example
let ftp = FTP::new("127.0.0.1:8080", File::create("/home/user/file.txt"));
Auto Trait Implementations§
impl Freeze for FTP
impl RefUnwindSafe for FTP
impl Send for FTP
impl Sync for FTP
impl Unpin for FTP
impl UnwindSafe for FTP
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