[−][src]Struct eventific::Eventific
Methods
impl<S, D: 'static + Send + Sync + Debug, St: Store<D>> Eventific<S, D, St>
[src]
pub fn get_logger(&self) -> &Logger
[src]
pub fn spawn<F: Future<Item = (), Error = ()> + Send + 'static>(
&self,
future: F
)
[src]
&self,
future: F
)
impl<S, D: 'static + Send + Sync + Debug + Clone, St: Store<D>> Eventific<S, D, St>
[src]
pub fn new(
) -> EventificBuilder<S, D, MemoryStore<D>, MemorySender, MemoryListener>
[src]
) -> EventificBuilder<S, D, MemoryStore<D>, MemorySender, MemoryListener>
impl<S: Default, D: 'static + Send + Sync + Debug + Clone + AsRef<str>, St: Store<D>> Eventific<S, D, St>
[src]
pub fn create_aggregate(
&self,
aggregate_id: Uuid,
event_data: Vec<D>,
metadata: Option<HashMap<String, String>>
) -> impl Future<Item = (), Error = EventificError<D>>
[src]
&self,
aggregate_id: Uuid,
event_data: Vec<D>,
metadata: Option<HashMap<String, String>>
) -> impl Future<Item = (), Error = EventificError<D>>
pub fn aggregate(
&self,
aggregate_id: Uuid
) -> impl Future<Item = Aggregate<S>, Error = EventificError<D>>
[src]
&self,
aggregate_id: Uuid
) -> impl Future<Item = Aggregate<S>, Error = EventificError<D>>
pub fn add_events_to_aggregate<F: Fn(Aggregate<S>) -> IF, IF: IntoFuture<Item = Vec<D>, Error = Error, Future = FF>, FF: Future<Item = Vec<D>, Error = Error>>(
&self,
aggregate_id: Uuid,
_metadata: Option<HashMap<String, String>>,
callback: F
) -> impl Future<Item = (), Error = EventificError<D>>
[src]
&self,
aggregate_id: Uuid,
_metadata: Option<HashMap<String, String>>,
callback: F
) -> impl Future<Item = (), Error = EventificError<D>>
pub fn total_events(&self) -> impl Future<Item = u64, Error = EventificError<D>>
[src]
pub fn total_events_for_aggregate(
&self,
aggregate_id: Uuid
) -> impl Future<Item = u64, Error = EventificError<D>>
[src]
&self,
aggregate_id: Uuid
) -> impl Future<Item = u64, Error = EventificError<D>>
pub fn total_aggregates(
&self
) -> impl Future<Item = u64, Error = EventificError<D>>
[src]
&self
) -> impl Future<Item = u64, Error = EventificError<D>>
pub fn all_aggregates(
&self
) -> impl Stream<Item = Aggregate<S>, Error = EventificError<D>>
[src]
&self
) -> impl Stream<Item = Aggregate<S>, Error = EventificError<D>>
pub fn updated_aggregates(
&self
) -> impl Stream<Item = Aggregate<S>, Error = EventificError<D>>
[src]
&self
) -> impl Stream<Item = Aggregate<S>, Error = EventificError<D>>
impl<S: 'static + Default + Send, D: 'static + Send + Sync + Debug + Clone + AsRef<str>, St: Store<D> + Sync> Eventific<S, D, St>
[src]
pub fn grpc_create_aggregate<Input: 'static + Send, Resp: 'static + Send, IC: 'static + FnOnce(&Input) -> &str, VC: 'static + FnOnce(&Input) -> Result<Vec<D>, Error> + Send, RC: 'static + FnOnce() -> Resp + Send>(
&self,
ctx: RequestOptions,
input: Input,
id_callback: IC,
event_callback: VC,
result_callback: RC
) -> SingleResponse<Resp>
[src]
&self,
ctx: RequestOptions,
input: Input,
id_callback: IC,
event_callback: VC,
result_callback: RC
) -> SingleResponse<Resp>
pub fn grpc_add_events_to_aggregate<Input: 'static + Sync + Send + Clone, Resp: 'static + Send, IC: 'static + FnOnce(&Input) -> &str, VC: 'static + Fn(&Input, Aggregate<S>) -> IF + Send, RC: 'static + FnOnce() -> Resp + Send, IF: 'static + IntoFuture<Item = Vec<D>, Error = Error, Future = FF>, FF: 'static + Future<Item = Vec<D>, Error = Error> + Send>(
&self,
ctx: RequestOptions,
input: Input,
id_callback: IC,
event_callback: VC,
result_callback: RC
) -> SingleResponse<Resp>
[src]
&self,
ctx: RequestOptions,
input: Input,
id_callback: IC,
event_callback: VC,
result_callback: RC
) -> SingleResponse<Resp>
Trait Implementations
Auto Trait Implementations
impl<S, D, St> Send for Eventific<S, D, St>
impl<S, D, St> Unpin for Eventific<S, D, St> where
D: Unpin,
St: Unpin,
D: Unpin,
St: Unpin,
impl<S, D, St> Sync for Eventific<S, D, St> where
St: Sync,
St: Sync,
impl<S, D, St = MemoryStore<D>> !UnwindSafe for Eventific<S, D, St>
impl<S, D, St = MemoryStore<D>> !RefUnwindSafe for Eventific<S, D, St>
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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,