[−][src]Enum file_transfer::ftp::FTP
Variants
Methods
impl FTP
[src]
pub fn new(ip_addr: &str, file: File) -> FTP
[src]
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"));
pub fn send(self)
[src]
Sends file to desiered Ip Parameter self
Example
let ftp = FTP::new("127.0.0.1:8080", File::create("/home/user/file.txt")); ftp.send();
pub fn recv(self)
[src]
Receives file and writes it to the desiered opened file
Parameter self
Example
let ftp = FTP::new("127.0.0.1:8080", File::create("/home/user/file.txt")); ftp.send();
Auto Trait Implementations
impl RefUnwindSafe for FTP
impl Send for FTP
impl Sync for FTP
impl Unpin for FTP
impl UnwindSafe for FTP
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,