graphile_worker_lifecycle_hooks 0.3.4

Lifecycle hooks for graphile_worker, a high performance Rust/PostgreSQL job queue
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod interceptor;
mod observer;

use futures::future::BoxFuture;

use crate::TypeErasedHooks;

#[doc(hidden)]
pub trait Emittable: Clone + Send + 'static {
    #[doc(hidden)]
    fn emit_to(self, hooks: &TypeErasedHooks) -> BoxFuture<'_, ()>;
}

pub use interceptor::*;
pub use observer::*;