Struct akka_projection_rs::FnHandler
source · pub struct FnHandler<A, AR, E>where
A: FnMut(E) -> AR,
AR: Future<Output = Result<(), HandlerError>>,{ /* private fields */ }
Trait Implementations§
source§impl<A, AR, E> Handler for FnHandler<A, AR, E>where
A: FnMut(E) -> AR + Send,
AR: Future<Output = Result<(), HandlerError>> + Send,
E: Send,
impl<A, AR, E> Handler for FnHandler<A, AR, E>where A: FnMut(E) -> AR + Send, AR: Future<Output = Result<(), HandlerError>> + Send, E: Send,
source§fn process<'life0, 'async_trait>(
&'life0 mut self,
envelope: Self::Envelope
) -> Pin<Box<dyn Future<Output = Result<(), HandlerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process<'life0, 'async_trait>( &'life0 mut self, envelope: Self::Envelope ) -> Pin<Box<dyn Future<Output = Result<(), HandlerError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Process an envelope.
A handler’s result is “completed” where envelopes are processed upon the previous one
having been processed successfully.
Auto Trait Implementations§
impl<A, AR, E> RefUnwindSafe for FnHandler<A, AR, E>where A: RefUnwindSafe, E: RefUnwindSafe,
impl<A, AR, E> Send for FnHandler<A, AR, E>where A: Send, E: Send,
impl<A, AR, E> Sync for FnHandler<A, AR, E>where A: Sync, E: Sync,
impl<A, AR, E> Unpin for FnHandler<A, AR, E>where A: Unpin, E: Unpin,
impl<A, AR, E> UnwindSafe for FnHandler<A, AR, E>where A: UnwindSafe, E: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more