[−][src]Struct eventually_redis::EventStore
Redis backend implementation for eventually::EventStore
trait.
Trait Implementations
impl<Id: Clone, Event: Clone> Clone for EventStore<Id, Event>
[src]
fn clone(&self) -> EventStore<Id, Event>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Id, Event> EventStore for EventStore<Id, Event> where
Id: TryFrom<String> + Display + Eq + Clone + Send + Sync,
<Id as TryFrom<String>>::Error: Error + Send + Sync + 'static,
Event: Serialize + Send + Sync,
Event: Deserialize<'de>,
[src]
Id: TryFrom<String> + Display + Eq + Clone + Send + Sync,
<Id as TryFrom<String>>::Error: Error + Send + Sync + 'static,
Event: Serialize + Send + Sync,
Event: Deserialize<'de>,
type SourceId = Id
Type of the Source id, typically an AggregateId
. Read more
type Event = Event
Event to be stored in the EventStore
, typically an Aggregate::Event
. Read more
type Error = StoreError
Possible errors returned by the EventStore
when requesting operations.
fn append(
&mut self,
id: Self::SourceId,
version: Expected,
events: Vec<Self::Event>
) -> BoxFuture<'_, StoreResult<u32>>
[src]
&mut self,
id: Self::SourceId,
version: Expected,
events: Vec<Self::Event>
) -> BoxFuture<'_, StoreResult<u32>>
fn stream(
&self,
id: Self::SourceId,
select: Select
) -> BoxFuture<'_, StoreResult<StoreEventStream<'_, Self>>>
[src]
&self,
id: Self::SourceId,
select: Select
) -> BoxFuture<'_, StoreResult<StoreEventStream<'_, Self>>>
fn stream_all(
&self,
select: Select
) -> BoxFuture<'_, StoreResult<StoreEventStream<'_, Self>>>
[src]
&self,
select: Select
) -> BoxFuture<'_, StoreResult<StoreEventStream<'_, Self>>>
fn remove(&mut self, _id: Self::SourceId) -> BoxFuture<'_, StoreResult<()>>
[src]
Auto Trait Implementations
impl<Id, Event> !RefUnwindSafe for EventStore<Id, Event>
impl<Id, Event> Send for EventStore<Id, Event> where
Event: Send,
Id: Send,
Event: Send,
Id: Send,
impl<Id, Event> Sync for EventStore<Id, Event> where
Event: Sync,
Id: Sync,
Event: Sync,
Id: Sync,
impl<Id, Event> Unpin for EventStore<Id, Event> where
Event: Unpin,
Id: Unpin,
Event: Unpin,
Id: Unpin,
impl<Id, Event> !UnwindSafe for EventStore<Id, Event>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub 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>,