pub struct ServerInfo { /* private fields */ }
Expand description
Contains information about an SMTP server
Implementations§
Source§impl ServerInfo
impl ServerInfo
Sourcepub fn from_response(response: &Response) -> Result<ServerInfo, Error>
pub fn from_response(response: &Response) -> Result<ServerInfo, Error>
Parses a EHLO response to create a ServerInfo
Sourcepub fn supports_feature(&self, keyword: Extension) -> bool
pub fn supports_feature(&self, keyword: Extension) -> bool
Checks if the server supports an ESMTP feature
Sourcepub fn supports_auth_mechanism(&self, mechanism: Mechanism) -> bool
pub fn supports_auth_mechanism(&self, mechanism: Mechanism) -> bool
Checks if the server supports an ESMTP feature
Sourcepub fn get_auth_mechanism(&self, mechanisms: &[Mechanism]) -> Option<Mechanism>
pub fn get_auth_mechanism(&self, mechanisms: &[Mechanism]) -> Option<Mechanism>
Gets a compatible mechanism from list
Trait Implementations§
Source§impl Clone for ServerInfo
impl Clone for ServerInfo
Source§fn clone(&self) -> ServerInfo
fn clone(&self) -> ServerInfo
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 moreSource§impl Debug for ServerInfo
impl Debug for ServerInfo
Source§impl Default for ServerInfo
impl Default for ServerInfo
Source§fn default() -> ServerInfo
fn default() -> ServerInfo
Returns the “default value” for a type. Read more
Source§impl Display for ServerInfo
impl Display for ServerInfo
Source§impl PartialEq for ServerInfo
impl PartialEq for ServerInfo
impl Eq for ServerInfo
impl StructuralPartialEq for ServerInfo
Auto Trait Implementations§
impl Freeze for ServerInfo
impl RefUnwindSafe for ServerInfo
impl Send for ServerInfo
impl Sync for ServerInfo
impl Unpin for ServerInfo
impl UnwindSafe for ServerInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more