pub trait LifecycleAware {
// Provided methods
fn open<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_ctx: &'life1 mut RuntimeContext,
) -> Pin<Box<dyn Future<Output = StreamResult<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn close<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_ctx: &'life1 mut RuntimeContext,
) -> Pin<Box<dyn Future<Output = StreamResult<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn on_checkpoint<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_runtime: &'life1 mut RuntimeContext,
_ckpt: &'life2 CheckpointContext,
) -> Pin<Box<dyn Future<Output = StreamResult<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn on_checkpoint_end<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_runtime: &'life1 mut RuntimeContext,
_ckpt: &'life2 CheckpointContext,
) -> Pin<Box<dyn Future<Output = StreamResult<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn report_metrics(&self) -> HashMap<String, f64> { ... }
}Provided Methods§
fn open<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_ctx: &'life1 mut RuntimeContext,
) -> Pin<Box<dyn Future<Output = StreamResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn close<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_ctx: &'life1 mut RuntimeContext,
) -> Pin<Box<dyn Future<Output = StreamResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_checkpoint<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_runtime: &'life1 mut RuntimeContext,
_ckpt: &'life2 CheckpointContext,
) -> Pin<Box<dyn Future<Output = StreamResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn on_checkpoint_end<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_runtime: &'life1 mut RuntimeContext,
_ckpt: &'life2 CheckpointContext,
) -> Pin<Box<dyn Future<Output = StreamResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn report_metrics(&self) -> HashMap<String, f64>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".