pub struct OwlpostEvents { /* private fields */ }Expand description
The venture’s hooks: OwlpostEvents::new().on_inbound(|mail| ...).
Implementations§
Source§impl OwlpostEvents
impl OwlpostEvents
pub fn new() -> Self
Sourcepub fn on_inbound(
self,
hook: impl Fn(InboundMail) -> BoxFuture<'static, Result<(), AnyError>> + Send + Sync + 'static,
) -> Self
pub fn on_inbound( self, hook: impl Fn(InboundMail) -> BoxFuture<'static, Result<(), AnyError>> + Send + Sync + 'static, ) -> Self
Calls hook with every verified inbound mail. A hook error fails the
delivery with a 5xx and leaves the dedup key unclaimed, so
Owlpost’s retry re-runs it.
Trait Implementations§
Source§impl Clone for OwlpostEvents
impl Clone for OwlpostEvents
Source§impl Debug for OwlpostEvents
impl Debug for OwlpostEvents
Auto Trait Implementations§
impl !RefUnwindSafe for OwlpostEvents
impl !UnwindSafe for OwlpostEvents
impl Freeze for OwlpostEvents
impl Send for OwlpostEvents
impl Sync for OwlpostEvents
impl Unpin for OwlpostEvents
impl UnsafeUnpin for OwlpostEvents
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