RegisterInterceptor

Trait RegisterInterceptor 

Source
pub trait RegisterInterceptor<T: CommandTransaction> {
    // Required method
    fn register(self: Rc<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 Rc instance

Required Methods§

Source

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

Implementors§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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