[−][src]Struct eventually::command::static::AsHandler
Trait Implementations
impl<T: StaticHandler> Handler for AsHandler<T> where
T: Send + Sync,
T::Command: Send + Sync,
AggregateState<T::Aggregate>: Send + Sync,
[src]
T: Send + Sync,
T::Command: Send + Sync,
AggregateState<T::Aggregate>: Send + Sync,
type Command = T::Command
type Aggregate = T::Aggregate
type Error = T::Error
fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 AggregateState<Self::Aggregate>,
command: Self::Command
) -> Pin<Box<dyn Future<Output = Result<Vec<AggregateEvent<Self::Aggregate>>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
state: &'life1 AggregateState<Self::Aggregate>,
command: Self::Command
) -> Pin<Box<dyn Future<Output = Result<Vec<AggregateEvent<Self::Aggregate>>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl<T> Send for AsHandler<T> where
T: Send,
T: Send,
impl<T> Sync for AsHandler<T> where
T: Sync,
T: Sync,
impl<T> Unpin for AsHandler<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for AsHandler<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for AsHandler<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,