[−][src]Struct async_smtp_lite::AsyncConnection
Implementations
impl<S, STU> AsyncConnection<S, STU> where
STU: TlsClientUpgrader<S>,
[src]
STU: TlsClientUpgrader<S>,
pub fn server_info(&self) -> &ServerInfo
[src]
pub fn new(stream: S, upgrader: STU) -> Self
[src]
impl<S> AsyncConnection<S, ()> where
S: Send + 'static,
[src]
S: Send + 'static,
pub fn with_tls_stream(stream: S) -> Self
[src]
impl<S, STU> AsyncConnection<S, STU> where
STU: TlsClientUpgrader<S>,
[src]
STU: TlsClientUpgrader<S>,
pub async fn stream_tls_upgrade<'_>(&'_ mut self) -> Result<(), Error>
[src]
impl<S, STU> AsyncConnection<S, STU> where
STU: TlsClientUpgrader<S> + Unpin,
S: AsyncRead + AsyncWrite + Unpin,
STU::Output: AsyncRead + AsyncWrite + Unpin,
[src]
STU: TlsClientUpgrader<S> + Unpin,
S: AsyncRead + AsyncWrite + Unpin,
STU::Output: AsyncRead + AsyncWrite + Unpin,
pub async fn handshake<'_>(
&'_ mut self,
is_smtps: bool,
hello_name: ClientId
) -> Result<(), Error>
[src]
&'_ mut self,
is_smtps: bool,
hello_name: ClientId
) -> Result<(), Error>
pub async fn send<'_, '_, '_>(
&'_ mut self,
envelope: &'_ Envelope,
email: &'_ [u8]
) -> Result<Response, Error>
[src]
&'_ mut self,
envelope: &'_ Envelope,
email: &'_ [u8]
) -> Result<Response, Error>
pub fn has_broken(&self) -> bool
[src]
pub fn can_starttls(&self) -> bool
[src]
pub async fn starttls<'_>(&'_ mut self) -> Result<(), Error>
[src]
pub async fn ehlo<'_, '_>(
&'_ mut self,
hello_name: &'_ ClientId
) -> Result<(), Error>
[src]
&'_ mut self,
hello_name: &'_ ClientId
) -> Result<(), Error>
pub async fn quit<'_>(&'_ mut self) -> Result<Response, Error>
[src]
pub fn abort(&mut self)
[src]
pub fn is_encrypted(&self) -> bool
[src]
pub async fn test_connected<'_>(&'_ mut self) -> bool
[src]
pub async fn auth<'_, '_, '_>(
&'_ mut self,
mechanisms: &'_ [Mechanism],
credentials: &'_ Credentials
) -> Result<Response, Error>
[src]
&'_ mut self,
mechanisms: &'_ [Mechanism],
credentials: &'_ Credentials
) -> Result<Response, Error>
pub async fn message<'_, '_>(
&'_ mut self,
message: &'_ [u8]
) -> Result<Response, Error>
[src]
&'_ mut self,
message: &'_ [u8]
) -> Result<Response, Error>
pub async fn command<C: Display, '_>(
&'_ mut self,
command: C
) -> Result<Response, Error>
[src]
&'_ mut self,
command: C
) -> Result<Response, Error>
pub async fn read_response<'_>(&'_ mut self) -> Result<Response, Error>
[src]
Auto Trait Implementations
impl<S, STU> RefUnwindSafe for AsyncConnection<S, STU> where
S: RefUnwindSafe,
STU: RefUnwindSafe,
<STU as Upgrader<S>>::Output: RefUnwindSafe,
S: RefUnwindSafe,
STU: RefUnwindSafe,
<STU as Upgrader<S>>::Output: RefUnwindSafe,
impl<S, STU> Send for AsyncConnection<S, STU> where
S: Send,
STU: Send,
<STU as Upgrader<S>>::Output: Send,
S: Send,
STU: Send,
<STU as Upgrader<S>>::Output: Send,
impl<S, STU> Sync for AsyncConnection<S, STU> where
S: Sync,
STU: Sync,
<STU as Upgrader<S>>::Output: Sync,
S: Sync,
STU: Sync,
<STU as Upgrader<S>>::Output: Sync,
impl<S, STU> Unpin for AsyncConnection<S, STU> where
S: Unpin,
STU: Unpin,
<STU as Upgrader<S>>::Output: Unpin,
S: Unpin,
STU: Unpin,
<STU as Upgrader<S>>::Output: Unpin,
impl<S, STU> UnwindSafe for AsyncConnection<S, STU> where
S: UnwindSafe,
STU: UnwindSafe,
<STU as Upgrader<S>>::Output: UnwindSafe,
S: UnwindSafe,
STU: UnwindSafe,
<STU as Upgrader<S>>::Output: UnwindSafe,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,