Struct akka_projection_rs::UnusedPendingHandler
source · pub struct UnusedPendingHandler<E> {
pub phantom: PhantomData<E>,
}
Expand description
For the purposes of constructing unused handlers.
Fields§
§phantom: PhantomData<E>
Trait Implementations§
source§impl<E> PendingHandler for UnusedPendingHandler<E>where
E: Send,
impl<E> PendingHandler for UnusedPendingHandler<E>where E: Send,
source§const MAX_PENDING: usize = 0usize
const MAX_PENDING: usize = 0usize
The maximum number of envelopes that can be pending at any time.
source§fn process_pending<'life0, 'async_trait>(
&'life0 mut self,
_envelope: Self::Envelope
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Future<Output = Result<(), HandlerError>> + Send>>, HandlerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_pending<'life0, 'async_trait>( &'life0 mut self, _envelope: Self::Envelope ) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Future<Output = Result<(), HandlerError>> + Send>>, HandlerError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Process an envelope with a pending result.
A handler’s result is “pending” when envelopes can be passed through and the
result of processing one is not immediately known. Meanwhile, more
envelopes can be passed though.
Auto Trait Implementations§
impl<E> RefUnwindSafe for UnusedPendingHandler<E>where E: RefUnwindSafe,
impl<E> Send for UnusedPendingHandler<E>where E: Send,
impl<E> Sync for UnusedPendingHandler<E>where E: Sync,
impl<E> Unpin for UnusedPendingHandler<E>where E: Unpin,
impl<E> UnwindSafe for UnusedPendingHandler<E>where 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