pub struct Storage {
pub traces: Arc<dyn TraceRepository>,
pub metadata: Arc<dyn MetadataRepository>,
pub cache: Arc<dyn CacheLayer>,
}Expand description
Composite storage that wires together the three repository concerns.
Consumers receive a single Storage value instead of managing three
separate Arc<dyn …> handles.
Fields§
§traces: Arc<dyn TraceRepository>Trace & span repository (analytical, high-volume).
metadata: Arc<dyn MetadataRepository>Metadata repository (tenants, configs, audit).
cache: Arc<dyn CacheLayer>Cache layer (hot queries, sessions).
Auto Trait Implementations§
impl Freeze for Storage
impl !RefUnwindSafe for Storage
impl Send for Storage
impl Sync for Storage
impl Unpin for Storage
impl UnsafeUnpin for Storage
impl !UnwindSafe for Storage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more