RegisterInterceptor

Trait RegisterInterceptor 

Source
pub trait RegisterInterceptor<T: CommandTransaction>: Send + Sync {
    // Required method
    fn register(self: Arc<Self>, interceptors: &mut Interceptors<T>);
}
Expand description

Trait for self-registering interceptors This allows interceptors that implement multiple interceptor traits to register themselves in all appropriate chains with a single Arc instance

Required Methods§

Source

fn register(self: Arc<Self>, interceptors: &mut Interceptors<T>)

Implementors§

Source§

impl<T, F> RegisterInterceptor<T> for ClosureNamespaceDefPostCreateInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut NamespaceDefPostCreateContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureNamespaceDefPostUpdateInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut NamespaceDefPostUpdateContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureNamespaceDefPreDeleteInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut NamespaceDefPreDeleteContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureNamespaceDefPreUpdateInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut NamespaceDefPreUpdateContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosurePostCommitInterceptor<F>
where T: CommandTransaction + Send, F: Fn(&mut PostCommitContext) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosurePreCommitInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut PreCommitContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureRingBufferDefPostCreateInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut RingBufferDefPostCreateContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureRingBufferDefPostUpdateInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut RingBufferDefPostUpdateContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureRingBufferDefPreDeleteInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut RingBufferDefPreDeleteContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureRingBufferDefPreUpdateInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut RingBufferDefPreUpdateContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureRingBufferPostDeleteInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut RingBufferPostDeleteContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureRingBufferPostInsertInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut RingBufferPostInsertContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureRingBufferPostUpdateInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut RingBufferPostUpdateContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureRingBufferPreDeleteInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut RingBufferPreDeleteContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureRingBufferPreInsertInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut RingBufferPreInsertContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureRingBufferPreUpdateInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut RingBufferPreUpdateContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureTableDefPostCreateInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut TableDefPostCreateContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureTableDefPostUpdateInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut TableDefPostUpdateContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureTableDefPreDeleteInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut TableDefPreDeleteContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureTableDefPreUpdateInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut TableDefPreUpdateContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureTablePostDeleteInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut TablePostDeleteContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureTablePostInsertInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut TablePostInsertContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureTablePostUpdateInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut TablePostUpdateContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureTablePreDeleteInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut TablePreDeleteContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureTablePreInsertInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut TablePreInsertContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureTablePreUpdateInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut TablePreUpdateContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureViewDefPostCreateInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut ViewDefPostCreateContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureViewDefPostUpdateInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut ViewDefPostUpdateContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureViewDefPreDeleteInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut ViewDefPreDeleteContext<'a, T>) -> Result<()> + Send + Sync + 'static,

Source§

impl<T, F> RegisterInterceptor<T> for ClosureViewDefPreUpdateInterceptor<T, F>
where T: CommandTransaction + Send + 'static, F: for<'a> Fn(&mut ViewDefPreUpdateContext<'a, T>) -> Result<()> + Send + Sync + 'static,