Skip to main content

ActorStateFlexibleAsync

Trait ActorStateFlexibleAsync 

Source
pub trait ActorStateFlexibleAsync<T>: ActorStateAsync + Sized
where T: Into<bool>,
{ // Required methods fn pre_run_flexible_async<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = T> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn run_flexible_async<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = T> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; // Provided methods fn pre_run_async<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>> where Self: Send + 'async_trait, 'life0: 'async_trait { ... } fn run_async<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>> where Self: Send + 'async_trait, 'life0: 'async_trait { ... } fn post_run_async<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: Send + 'async_trait { ... } }
Expand description

An async ActorState that deals with T.

Required Methods§

Source

fn pre_run_flexible_async<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = T> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn run_flexible_async<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = T> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

Source

fn pre_run_async<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait,

Source

fn run_async<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait,

Source

fn post_run_async<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§