pub struct EmailTransport {
pub from: String,
pub smtp_host: String,
pub smtp_port: u16,
pub username: String,
pub password: String,
pub allowed_to: Vec<String>,
pub imap_host: Option<String>,
pub imap_port: u16,
}Expand description
SMTP (outbound) + optional IMAP (inbound) email transport.
Fields§
§from: String§smtp_host: String§smtp_port: u16§username: String§password: String§allowed_to: Vec<String>§imap_host: Option<String>IMAP server for inbound polling (None = outbound only).
imap_port: u16Implementations§
Trait Implementations§
Source§impl GatewayTransport for EmailTransport
impl GatewayTransport for EmailTransport
fn name(&self) -> &str
fn start<'life0, 'async_trait>(
&'life0 self,
_tx: UnboundedSender<GatewayMessage>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 self,
_response: GatewayResponse,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for EmailTransport
impl RefUnwindSafe for EmailTransport
impl Send for EmailTransport
impl Sync for EmailTransport
impl Unpin for EmailTransport
impl UnsafeUnpin for EmailTransport
impl UnwindSafe for EmailTransport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more