Trait samotop_core::mail::MailSetup
source · [−]Expand description
Can set up the given mail services.
/// This mail setup replaces dispatch service with default. No mail will be sent.
#[derive(Clone, Debug)]
struct NoDispatch;
impl<T: AcceptsDispatch> MailSetup<T> for NoDispatch
{
fn setup(self, config: &mut T) {
config.wrap_dispatches(|_| NullDispatch)
}
}
let mail_svc = Builder + NoDispatch;