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§
fn get_cached_system_event<'life0, 'async_trait, E>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Option<E>, CacheError>> + Send + '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.