mnesis 0.1.0

A zero-compromise event-sourcing and CQRS kernel for Rust with maximum compile-time type safety
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0277]: the trait bound `BadError: std::error::Error` is not satisfied
  --> tests/compile_fail/aggregate_error_not_std_error.rs:32:18
   |
32 |     type Error = BadError; // should fail: BadError doesn't impl Error
   |                  ^^^^^^^^ unsatisfied trait bound
   |
help: the trait `std::error::Error` is not implemented for `BadError`
  --> tests/compile_fail/aggregate_error_not_std_error.rs:23:1
   |
23 | enum BadError {
   | ^^^^^^^^^^^^^
note: required by a bound in `mnesis::Aggregate::Error`
  --> src/aggregate.rs
   |
   |     type Error: Error + Send + Sync + Debug + 'static;
   |                 ^^^^^ required by this bound in `Aggregate::Error`