Skip to main content

SideEffect

Trait SideEffect 

Source
pub trait SideEffect<T>: Send + Sync
where T: Model,
{ // Required method fn on_mutation<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, mutation: &'life1 Mutation<'life2, T>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait; }

Required Methods§

Source

fn on_mutation<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, mutation: &'life1 Mutation<'life2, T>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§