Struct akka_projection_rs::FnHandler
source · pub struct FnHandler<A, AR, E>{ /* private fields */ }Trait Implementations§
source§impl<A, AR, E> Handler for FnHandler<A, AR, E>
impl<A, AR, E> Handler for FnHandler<A, AR, E>
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>
impl<A, AR, E> Sync for FnHandler<A, AR, E>
impl<A, AR, E> Unpin for FnHandler<A, AR, E>
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