[][src]Trait rifling::hook::HookFunc

pub trait HookFunc: Sync + Send {
    fn run(&self, delivery: &Delivery);
}

The part of the hook that will be executed after validating the payload You can implement this trait to your own struct

Required methods

fn run(&self, delivery: &Delivery)

Loading content...

Implementors

impl<F> HookFunc for F where
    F: Fn(&Delivery) + Clone + Sync + Send + 'static, 
[src]

Implement HookFunc to Fn(&Delivery).

fn run(&self, delivery: &Delivery)[src]

Run the function

Loading content...