intrepid-model 0.2.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 intrepid_connection;

pub use caches::*;
pub use events::*;
pub use intrepid_connection::*;

/// 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 InterpidRepo: CacheRepo + EventRepo {}

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