[−][src]Struct new_tokio_smtp::EhloData
A type representing the ehlo response of the last ehlo call
This is mainly used to check if a certain capability/command is supported. E.g. if SMTPUTF8 is supported.
Implementations
impl EhloData
[src]
pub fn new(domain: Domain, data: HashMap<Capability, Vec<EhloParam>>) -> Self
[src]
create a new Ehlo data from the domain with which the server responded and the ehlo parameters of the response
pub fn has_capability<A>(&self, cap: A) -> bool where
A: AsRef<str>,
[src]
A: AsRef<str>,
check if a ehlo contained a specific capability e.g. SMTPUTF8
pub fn get_capability_params<A>(&self, cap: A) -> Option<&[EhloParam]> where
A: AsRef<str>,
[src]
A: AsRef<str>,
get the parameters for a specific capability e.g. the size of SIZE
pub fn capability_map(&self) -> &HashMap<Capability, Vec<EhloParam>>
[src]
return a reference to the inner hash map
pub fn domain(&self) -> &Domain
[src]
the domain for which the server acts
Trait Implementations
impl Clone for EhloData
[src]
impl Debug for EhloData
[src]
impl From<(Domain, HashMap<Capability, Vec<EhloParam>, RandomState>)> for EhloData
[src]
impl Into<(Domain, HashMap<Capability, Vec<EhloParam>, RandomState>)> for EhloData
[src]
Auto Trait Implementations
impl RefUnwindSafe for EhloData
impl Send for EhloData
impl Sync for EhloData
impl Unpin for EhloData
impl UnwindSafe for EhloData
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>,