pub trait Processor<T>{
type Error;
// Required methods
fn initialize<'life0, 'async_trait>(
&'life0 mut self,
msg: InitializeMessage,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn process_records<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
msg: ProcessRecordsMessage,
checkpointer: &'life1 mut Checkpointer<'life2, T>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn shutdown<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
msg: ShutdownMessage,
checkpointer: &'life1 mut Checkpointer<'life2, T>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn shutdown_requested<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
msg: ShutdownRequestedMessage,
checkpointer: &'life1 mut Checkpointer<'life2, T>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn lease_lost<'life0, 'async_trait>(
&'life0 mut self,
msg: LeaseLostMessage,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn shard_ended<'life0, 'async_trait>(
&'life0 mut self,
msg: ShardEndedMessage,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Associated Types§
Required Methods§
fn initialize<'life0, 'async_trait>(
&'life0 mut self,
msg: InitializeMessage,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_records<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
msg: ProcessRecordsMessage,
checkpointer: &'life1 mut Checkpointer<'life2, T>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn shutdown<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
msg: ShutdownMessage,
checkpointer: &'life1 mut Checkpointer<'life2, T>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn shutdown_requested<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
msg: ShutdownRequestedMessage,
checkpointer: &'life1 mut Checkpointer<'life2, T>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn lease_lost<'life0, 'async_trait>(
&'life0 mut self,
msg: LeaseLostMessage,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn shard_ended<'life0, 'async_trait>(
&'life0 mut self,
msg: ShardEndedMessage,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".