Struct fmodel_rust::materialized_view::MaterializedView
source · pub struct MaterializedView<S, E, Repository, View, Error>where
Repository: ViewStateRepository<E, S, Error>,
View: ViewStateComputation<E, S>,{ /* private fields */ }Expand description
Materialized View.
It is using a View / ViewStateComputation to compute new state based on the current state and the event.
It is using a ViewStateRepository to fetch the current state and to save the new state.
Generic parameters:
S- StateE- EventRepository- View State repositoryView- ViewError- Error
Implementations§
source§impl<S, E, Repository, View, Error> MaterializedView<S, E, Repository, View, Error>where
Repository: ViewStateRepository<E, S, Error>,
View: ViewStateComputation<E, S>,
impl<S, E, Repository, View, Error> MaterializedView<S, E, Repository, View, Error>where Repository: ViewStateRepository<E, S, Error>, View: ViewStateComputation<E, S>,
sourcepub fn new(repository: Repository, view: View) -> Self
pub fn new(repository: Repository, view: View) -> Self
Creates a new instance of MaterializedView.
Auto Trait Implementations§
impl<S, E, Repository, View, Error> RefUnwindSafe for MaterializedView<S, E, Repository, View, Error>where E: RefUnwindSafe, Error: RefUnwindSafe, Repository: RefUnwindSafe, S: RefUnwindSafe, View: RefUnwindSafe,
impl<S, E, Repository, View, Error> Send for MaterializedView<S, E, Repository, View, Error>where E: Send, Error: Send, Repository: Send, S: Send, View: Send,
impl<S, E, Repository, View, Error> Sync for MaterializedView<S, E, Repository, View, Error>where E: Sync, Error: Sync, Repository: Sync, S: Sync, View: Sync,
impl<S, E, Repository, View, Error> Unpin for MaterializedView<S, E, Repository, View, Error>where E: Unpin, Error: Unpin, Repository: Unpin, S: Unpin, View: Unpin,
impl<S, E, Repository, View, Error> UnwindSafe for MaterializedView<S, E, Repository, View, Error>where E: UnwindSafe, Error: UnwindSafe, Repository: UnwindSafe, S: UnwindSafe, View: 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