Enum akka_projection_rs::Handlers
source · pub enum Handlers<A, B>where
A: Handler,
B: PendingHandler,{
Ready(A, B),
Pending(B, A),
}
Expand description
Captures the various types of handlers and the way they are performed.
Variants§
Trait Implementations§
source§impl<A, AR, E> From<A> for Handlers<FnHandler<A, AR, E>, UnusedPendingHandler<E>>where
A: FnMut(E) -> AR + Send,
AR: Future<Output = Result<(), HandlerError>> + Send,
E: Send,
impl<A, AR, E> From<A> for Handlers<FnHandler<A, AR, E>, UnusedPendingHandler<E>>where A: FnMut(E) -> AR + Send, AR: Future<Output = Result<(), HandlerError>> + Send, E: Send,
source§impl<B, E> From<B> for Handlers<UnusedHandler<E>, B>where
B: PendingHandler,
E: Send,
impl<B, E> From<B> for Handlers<UnusedHandler<E>, B>where B: PendingHandler, E: Send,
Auto Trait Implementations§
impl<A, B> RefUnwindSafe for Handlers<A, B>where A: RefUnwindSafe, B: RefUnwindSafe,
impl<A, B> Send for Handlers<A, B>where A: Send, B: Send,
impl<A, B> Sync for Handlers<A, B>where A: Sync, B: Sync,
impl<A, B> Unpin for Handlers<A, B>where A: Unpin, B: Unpin,
impl<A, B> UnwindSafe for Handlers<A, B>where A: UnwindSafe, B: 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