[−][src]Struct async_imap_lite::AsyncConnection
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]
AS: AsRawFdOrSocket,
Async<AS>: AsyncRead + AsyncWrite + Unpin,
ASTU: TlsClientUpgrader<Async<AS>> + UpgraderExtRefer<Async<AS>> + Unpin,
ASTU::Output: AsyncRead + AsyncWrite + Unpin,
pub async fn new(
stream: UpgradableAsyncStream<Async<AS>, ASTU>,
debug: bool,
greeting_read: bool
) -> Self
[src]
stream: UpgradableAsyncStream<Async<AS>, ASTU>,
debug: bool,
greeting_read: bool
) -> Self
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]
&'_ mut self,
command: S
) -> Result<()>
pub async fn run_command_and_read_response<S: AsRef<str>, '_>(
&'_ mut self,
untagged_command: S
) -> Result<Vec<u8>>
[src]
&'_ mut self,
untagged_command: S
) -> Result<Vec<u8>>
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,
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,
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]
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, 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>,