pub struct FullEmailClient { /* private fields */ }Expand description
A EmailClient implementation that forwards the email to the expected recipients
Implementations§
Source§impl FullEmailClient
impl FullEmailClient
pub fn new(email_config: EmailClientConfig) -> Result<Self, LsError>
Trait Implementations§
Source§impl Clone for FullEmailClient
impl Clone for FullEmailClient
Source§fn clone(&self) -> FullEmailClient
fn clone(&self) -> FullEmailClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl EmailClient for FullEmailClient
impl EmailClient for FullEmailClient
fn send( &self, email_message: EmailMessage, ) -> Pin<Box<dyn Future<Output = Result<(), LsError>> + Send>>
fn get_emails(&self) -> Result<Vec<EmailMessage>, LsError>
fn clear_emails(&self) -> Result<(), LsError>
fn retain_emails( &self, _: Box<dyn FnMut(&EmailMessage) -> bool>, ) -> Result<(), LsError>
Auto Trait Implementations§
impl Freeze for FullEmailClient
impl !RefUnwindSafe for FullEmailClient
impl Send for FullEmailClient
impl Sync for FullEmailClient
impl Unpin for FullEmailClient
impl UnsafeUnpin for FullEmailClient
impl !UnwindSafe for FullEmailClient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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