lib.rs (1480B)
1 #![doc = include_str!("../README.md")] 2 #![forbid(unsafe_code)] 3 4 pub mod atomic; 5 pub mod authored; 6 pub mod authored_atomic; 7 pub mod authored_delivery; 8 pub mod authored_draft; 9 pub mod authored_draft_pair; 10 pub mod authored_draft_query; 11 pub mod authored_draft_submission; 12 pub mod backup; 13 #[cfg(feature = "command_journal")] 14 pub mod command; 15 mod error; 16 pub mod event; 17 #[cfg(feature = "protected_outbox")] 18 pub mod inventory; 19 pub mod journal; 20 #[cfg(feature = "memory")] 21 pub mod memory; 22 pub mod outbox; 23 pub mod private_artifact; 24 pub mod projection; 25 pub mod status; 26 pub mod workspace; 27 28 pub use backup::StorageReliability as BackupSource; 29 pub use error::Error; 30 pub use event::EventStore; 31 pub use journal::Journal; 32 pub use outbox::Outbox; 33 pub use projection::ProjectionStore; 34 pub use status::StorageStatus; 35 36 /// Complete backend-neutral storage capability implemented by concrete stores. 37 pub trait Storage: 38 EventStore 39 + Journal 40 + Outbox 41 + ProjectionStore 42 + private_artifact::PrivateArtifactStore 43 + backup::StorageReliability 44 + atomic::AtomicStorage 45 + authored_atomic::AuthoredAtomicStorage 46 + authored_draft::AuthoredDraftStore 47 { 48 } 49 50 impl<T> Storage for T where 51 T: EventStore 52 + Journal 53 + Outbox 54 + ProjectionStore 55 + private_artifact::PrivateArtifactStore 56 + backup::StorageReliability 57 + atomic::AtomicStorage 58 + authored_atomic::AuthoredAtomicStorage 59 + authored_draft::AuthoredDraftStore 60 { 61 }