Struct flep_protocol::reply::Reply
[−]
[src]
pub struct Reply { pub code: Code, pub text: Text, }
A reply from the FTP server.
Fields
code: Code
The 3-digit reply code.
text: Text
The response text.
Methods
impl Reply
[src]
fn new<C, S>(code: C, text: S) -> Self where
C: Into<Code>,
S: Into<String>,
C: Into<Code>,
S: Into<String>,
fn single_line<C, S>(code: C, text: S) -> Self where
C: Into<Code>,
S: Into<String>,
C: Into<Code>,
S: Into<String>,
fn multi_line<C>(code: C, lines: Vec<String>) -> Self where
C: Into<Code>,
C: Into<Code>,
fn write(&self, write: &mut Write) -> Result<(), Error>
Trait Implementations
impl Clone for Reply
[src]
fn clone(&self) -> Reply
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Reply
[src]
impl PartialEq for Reply
[src]
fn eq(&self, __arg_0: &Reply) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Reply) -> bool
This method tests for !=
.