Trait samotop::mail::AcceptsGuard
source · [−]pub trait AcceptsGuard {
fn add_first_guard<T>(&mut self, item: T)
where
T: 'static + MailGuard + Send + Sync;
fn add_last_guard<T>(&mut self, item: T)
where
T: 'static + MailGuard + Send + Sync;
fn wrap_guards<T, F>(&mut self, wrap: F)
where
T: 'static + MailGuard + Send + Sync,
F: FnOnce(Box<dyn MailGuard + Sync + Send + 'static, Global>) -> T;
}