pub trait ImageEventWatcher: Send + Sync {
// Required method
fn watch_image_events<'life0, 'async_trait>(
&'life0 self,
filter: ImageEventFilter,
) -> Pin<Box<dyn Future<Output = AppResult<BoxStream<'static, AppResult<ImageEvent>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Implemented by backends that can watch image lifecycle events.
Required Methods§
Sourcefn watch_image_events<'life0, 'async_trait>(
&'life0 self,
filter: ImageEventFilter,
) -> Pin<Box<dyn Future<Output = AppResult<BoxStream<'static, AppResult<ImageEvent>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn watch_image_events<'life0, 'async_trait>(
&'life0 self,
filter: ImageEventFilter,
) -> Pin<Box<dyn Future<Output = AppResult<BoxStream<'static, AppResult<ImageEvent>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stream image lifecycle events matching filter.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".