intrepid-model 0.3.0

Manage complex async business logic with ease
Documentation
#![deny(missing_docs, rust_2018_idioms, nonstandard_style, future_incompatible)]
#![doc = include_str!("README.md")]

mod caches;
mod events;
mod subscriptions;

pub use caches::*;
pub use events::*;
pub use subscriptions::*;

/// An intrepid repository combines the functionality of a cache and an event repo,
/// and is automatically implemented for any type that implements both.
///
/// This lets you establish an interface that expects both types, and then use any
/// type that implements both without having to specify both types every time.
pub trait IntrepidRepo: CacheRepo + EventRepo {}

impl<T> IntrepidRepo for T where T: CacheRepo + EventRepo {}