[][src]Struct async_imap_lite::AsyncConnection

pub struct AsyncConnection<AS, ASTU> where
    AS: AsRawFdOrSocket,
    Async<AS>: AsyncRead + AsyncWrite,
    ASTU: TlsClientUpgrader<Async<AS>> + Unpin,
    ASTU::Output: AsyncRead + AsyncWrite + Unpin
{ /* fields omitted */ }

Implementations

impl<AS, ASTU> AsyncConnection<AS, ASTU> where
    AS: AsRawFdOrSocket,
    Async<AS>: AsyncRead + AsyncWrite + Unpin,
    ASTU: TlsClientUpgrader<Async<AS>> + UpgraderExtRefer<Async<AS>> + Unpin,
    ASTU::Output: AsyncRead + AsyncWrite + Unpin
[src]

pub async fn new(
    stream: UpgradableAsyncStream<Async<AS>, ASTU>,
    debug: bool,
    greeting_read: bool
) -> Self
[src]

pub async fn read_greeting<'_>(&'_ mut self) -> Result<Vec<u8>>[src]

pub async fn run_command_and_check_ok<S: AsRef<str>, '_>(
    &'_ mut self,
    command: S
) -> Result<()>
[src]

pub async fn run_command_and_read_response<S: AsRef<str>, '_>(
    &'_ mut self,
    untagged_command: S
) -> Result<Vec<u8>>
[src]

Auto Trait Implementations

impl<AS, ASTU> !RefUnwindSafe for AsyncConnection<AS, ASTU>

impl<AS, ASTU> Send for AsyncConnection<AS, ASTU> where
    AS: Send,
    ASTU: Send,
    <ASTU as Upgrader<Async<AS>>>::Output: Send

impl<AS, ASTU> Sync for AsyncConnection<AS, ASTU> where
    AS: Sync,
    ASTU: Sync,
    <ASTU as Upgrader<Async<AS>>>::Output: Sync

impl<AS, ASTU> Unpin for AsyncConnection<AS, ASTU>

impl<AS, ASTU> !UnwindSafe for AsyncConnection<AS, ASTU>

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.