Struct new_tokio_smtp::response::ResponseCode [−][src]
pub struct ResponseCode(_);
the response code of used by smtp server
Methods
impl ResponseCode
[src]
impl ResponseCode
pub fn is_positive(&self) -> bool
[src]
pub fn is_positive(&self) -> bool
true if the code starts with 2
pub fn is_intermediate(&self) -> bool
[src]
pub fn is_intermediate(&self) -> bool
true if the code starts with 3
pub fn is_transient_failure(&self) -> bool
[src]
pub fn is_transient_failure(&self) -> bool
true if the code starts with 4
pub fn is_permanent_failure(&self) -> bool
[src]
pub fn is_permanent_failure(&self) -> bool
true if the code starts with 5
pub fn is_erroneous(&self) -> bool
[src]
pub fn is_erroneous(&self) -> bool
true if the code doesn't start with 2
or 3
pub fn as_byte_string(&self) -> [u8; 3]
[src]
pub fn as_byte_string(&self) -> [u8; 3]
the actual bytes returned as response code
Trait Implementations
impl Debug for ResponseCode
[src]
impl Debug for ResponseCode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for ResponseCode
[src]
impl Copy for ResponseCode
impl Clone for ResponseCode
[src]
impl Clone for ResponseCode
fn clone(&self) -> ResponseCode
[src]
fn clone(&self) -> ResponseCode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for ResponseCode
[src]
impl Eq for ResponseCode
impl PartialEq for ResponseCode
[src]
impl PartialEq for ResponseCode
fn eq(&self, other: &ResponseCode) -> bool
[src]
fn eq(&self, other: &ResponseCode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ResponseCode) -> bool
[src]
fn ne(&self, other: &ResponseCode) -> bool
This method tests for !=
.
impl Hash for ResponseCode
[src]
impl Hash for ResponseCode
Auto Trait Implementations
impl Send for ResponseCode
impl Send for ResponseCode
impl Sync for ResponseCode
impl Sync for ResponseCode