[−][src]Struct new_tokio_smtp::response::Response
response of a smtp server
Implementations
impl Response
[src]
pub fn new(code: ResponseCode, lines: Vec<String>) -> Self
[src]
crate a new Response from a response code and a number of lines
If lines is empty a single empty line will be pushed to the
lines Vec
.
pub fn is_erroneous(&self) -> bool
[src]
true if the response code is unknown or indicates an error
pub fn code(&self) -> ResponseCode
[src]
return the response code
pub fn msg(&self) -> &[String]
[src]
returns the lines of the msg/payload
this will have at last one line, throuhg this line might be empty
Trait Implementations
impl Clone for Response
[src]
impl Debug for Response
[src]
impl Eq for Response
[src]
impl Hash for Response
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Response> for Response
[src]
impl StructuralEq for Response
[src]
impl StructuralPartialEq for Response
[src]
Auto Trait Implementations
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,