CacheSystemEvent

Trait CacheSystemEvent 

Source
pub trait CacheSystemEvent {
    // Required method
    fn get_cached_system_event<'life0, 'async_trait, E>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<Option<E>, CacheError>> + Send + 'async_trait>>
       where E: 'async_trait + Message + Name + Default,
             Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Cache interface for retrieving system events with automatic deserialization.

Required Methods§

Source

fn get_cached_system_event<'life0, 'async_trait, E>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Option<E>, CacheError>> + Send + 'async_trait>>
where E: 'async_trait + Message + Name + Default, 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", so this trait is not object safe.

Implementors§

Source§

impl<T> CacheSystemEvent for T
where T: CacheRaw + Send,