QueryProcessor

Struct QueryProcessor 

Source
pub struct QueryProcessor<A, E, Q>
where A: Aggregate, E: DomainEvent<A>, Q: Query<A, E>,
{ /* private fields */ }

Implementations§

Source§

impl<A, E, Q> QueryProcessor<A, E, Q>
where A: Aggregate, E: DomainEvent<A>, Q: Query<A, E>,

Source

pub async fn process<S: Store<A, E>>( store: &S, aggregate_id: Option<&str>, ) -> Result<Q, Error>

Auto Trait Implementations§

§

impl<A, E, Q> Freeze for QueryProcessor<A, E, Q>

§

impl<A, E, Q> RefUnwindSafe for QueryProcessor<A, E, Q>

§

impl<A, E, Q> Send for QueryProcessor<A, E, Q>
where Q: Send,

§

impl<A, E, Q> Sync for QueryProcessor<A, E, Q>
where Q: Sync,

§

impl<A, E, Q> Unpin for QueryProcessor<A, E, Q>
where A: Unpin, E: Unpin, Q: Unpin,

§

impl<A, E, Q> UnwindSafe for QueryProcessor<A, E, Q>
where A: UnwindSafe, E: UnwindSafe, Q: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.