Trait dendrite_auth::dendrite::axon_utils::AsyncApplicableTo
source · pub trait AsyncApplicableTo<Projection, Metadata>: VecU8Message + Send + Sync + Debug {
// Required methods
fn apply_to<'life0, 'async_trait>(
self,
metadata: Metadata,
projection: &'life0 mut Projection
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn box_clone(&self) -> Box<dyn AsyncApplicableTo<Projection, Metadata>>;
}
Expand description
Describes a Message
that is asynchronously applicable to a particular projection type.
Required Methods§
sourcefn apply_to<'life0, 'async_trait>(
self,
metadata: Metadata,
projection: &'life0 mut Projection
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn apply_to<'life0, 'async_trait>(
self,
metadata: Metadata,
projection: &'life0 mut Projection
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Applies this message to the given projection.