Struct new_tokio_smtp::response::ResponseCode
source · pub struct ResponseCode(_);
Expand description
the response code of used by smtp server
Implementations§
source§impl ResponseCode
impl ResponseCode
sourcepub fn is_positive(&self) -> bool
pub fn is_positive(&self) -> bool
true if the code starts with 2
sourcepub fn is_intermediate(&self) -> bool
pub fn is_intermediate(&self) -> bool
true if the code starts with 3
sourcepub fn is_transient_failure(&self) -> bool
pub fn is_transient_failure(&self) -> bool
true if the code starts with 4
sourcepub fn is_permanent_failure(&self) -> bool
pub fn is_permanent_failure(&self) -> bool
true if the code starts with 5
sourcepub fn is_erroneous(&self) -> bool
pub fn is_erroneous(&self) -> bool
true if the code doesn’t start with 2
or 3
sourcepub fn as_byte_string(&self) -> [u8; 3]
pub fn as_byte_string(&self) -> [u8; 3]
the actual bytes returned as response code
Trait Implementations§
source§impl Clone for ResponseCode
impl Clone for ResponseCode
source§fn clone(&self) -> ResponseCode
fn clone(&self) -> ResponseCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more