Skip to main content

WatchableSql

Trait WatchableSql 

Source
pub trait WatchableSql<F> {
    // Required method
    fn watch<'life0, 'async_trait, T>(
        &'life0 self,
        handler: F,
    ) -> Pin<Box<dyn Future<Output = JoinHandle<()>> + Send + 'async_trait>>
       where F: Fn(Vec<Event<T>>) + Sync + Send + 'static,
             T: Debug + Send + Sync + 'static + DeserializeOwned + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn watch<'life0, 'async_trait, T>( &'life0 self, handler: F, ) -> Pin<Box<dyn Future<Output = JoinHandle<()>> + Send + 'async_trait>>
where F: Fn(Vec<Event<T>>) + Sync + Send + 'static, T: Debug + Send + Sync + 'static + DeserializeOwned + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<F> WatchableSql<F> for str

Source§

fn watch<'life0, 'async_trait, T>( &'life0 self, handler: F, ) -> Pin<Box<dyn Future<Output = JoinHandle<()>> + Send + 'async_trait>>
where F: Fn(Vec<Event<T>>) + Sync + Send + 'static, T: Debug + Send + Sync + 'static + DeserializeOwned + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Implementors§