Struct vsmtp_server::MailHandler
pub struct MailHandler { /* private fields */ }Expand description
Send the email to the queue.
Implementations§
§impl MailHandler
impl MailHandler
pub const fn new(
working_sender: Sender<ProcessMessage>,
delivery_sender: Sender<ProcessMessage>
) -> Self
pub const fn new(
working_sender: Sender<ProcessMessage>,
delivery_sender: Sender<ProcessMessage>
) -> Self
create a new mail handler
Trait Implementations§
§impl Clone for MailHandler
impl Clone for MailHandler
§fn clone(&self) -> MailHandler
fn clone(&self) -> MailHandler
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl OnMail for MailHandler
impl OnMail for MailHandler
§fn on_mail<'life0, 'async_trait>(
&'life0 mut self,
mail: Box<ContextFinished>,
message: MessageBody,
queue_manager: Arc<dyn GenericQueueManager>
) -> Pin<Box<dyn Future<Output = CodeID> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_mail<'life0, 'async_trait>(
&'life0 mut self,
mail: Box<ContextFinished>,
message: MessageBody,
queue_manager: Arc<dyn GenericQueueManager>
) -> Pin<Box<dyn Future<Output = CodeID> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
the server executes this function once the email as been received.
Auto Trait Implementations§
impl !RefUnwindSafe for MailHandler
impl Send for MailHandler
impl Sync for MailHandler
impl Unpin for MailHandler
impl !UnwindSafe for MailHandler
Blanket Implementations§
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>
§impl<T> Variant for Twhere
T: Any + Clone + SendSync,
impl<T> Variant for Twhere
T: Any + Clone + SendSync,
§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this [
Variant] trait object to &mut dyn Any.§fn as_boxed_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn as_boxed_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert this [
Variant] trait object to Box<dyn Any>.§fn clone_object(&self) -> Box<dyn Variant + 'static, Global>
fn clone_object(&self) -> Box<dyn Variant + 'static, Global>
Clone this [
Variant] trait object.