use crate::tls::TlsClientUpgrader;
use crate::upgradable::UpgradableAsyncStream;
pub type ImapClientInnerStream<S, SU> = UpgradableAsyncStream<S, SU>;
impl<S, SU> ImapClientInnerStream<S, SU>
where
SU: TlsClientUpgrader<S>,
{
pub fn with_imap_tcp_stream_and_tls_upgrader(tcp_stream: S, tls_upgrader: SU) -> Self {
Self::new(tcp_stream, tls_upgrader)
}
}
pub type SmtpClientInnerStream<S, SU> = UpgradableAsyncStream<S, SU>;
impl<S, SU> SmtpClientInnerStream<S, SU>
where
SU: TlsClientUpgrader<S>,
{
pub fn with_smtp_tcp_stream_and_tls_upgrader(tcp_stream: S, tls_upgrader: SU) -> Self {
Self::new(tcp_stream, tls_upgrader)
}
}