[][src]Struct async_smtp_lite::AsyncClient

pub struct AsyncClient<S, STU> where
    STU: TlsClientUpgrader<S>, 
{ /* fields omitted */ }

Implementations

impl<S, STU> AsyncClient<S, STU> where
    STU: TlsClientUpgrader<S>, 
[src]

pub fn new(connection: AsyncConnection<S, STU>) -> Self[src]

impl<S, STU> AsyncClient<S, STU> where
    STU: TlsClientUpgrader<S> + Unpin,
    S: AsyncRead + AsyncWrite + Unpin,
    STU::Output: AsyncRead + AsyncWrite + Unpin
[src]

pub async fn handshake<'_>(
    &'_ mut self,
    is_smtps: bool,
    hello_name: ClientId
) -> Result<(), Error>
[src]

pub async fn auth<'a, '_, '_, '_>(
    &'a mut self,
    mechanisms: &'_ [Mechanism],
    credentials: &'_ Credentials
) -> Result<AsyncSession<'_, S, STU>, Error>
[src]

Auto Trait Implementations

impl<S, STU> RefUnwindSafe for AsyncClient<S, STU> where
    S: RefUnwindSafe,
    STU: RefUnwindSafe,
    <STU as Upgrader<S>>::Output: RefUnwindSafe

impl<S, STU> Send for AsyncClient<S, STU> where
    S: Send,
    STU: Send,
    <STU as Upgrader<S>>::Output: Send

impl<S, STU> Sync for AsyncClient<S, STU> where
    S: Sync,
    STU: Sync,
    <STU as Upgrader<S>>::Output: Sync

impl<S, STU> Unpin for AsyncClient<S, STU> where
    S: Unpin,
    STU: Unpin,
    <STU as Upgrader<S>>::Output: Unpin

impl<S, STU> UnwindSafe for AsyncClient<S, STU> where
    S: UnwindSafe,
    STU: UnwindSafe,
    <STU as Upgrader<S>>::Output: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,