pub struct Cascade<A, B> { /* private fields */ }Expand description
A layered store: reads try the primary first, then fall back to the secondary; writes always go to the primary.
This is layering (like an overlay filesystem), distinct from
OverlayStore, which routes by path prefix. Typical use: runtime
overrides cascading over immutable defaults.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<A, B> Freeze for Cascade<A, B>
impl<A, B> RefUnwindSafe for Cascade<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Cascade<A, B>
impl<A, B> Sync for Cascade<A, B>
impl<A, B> Unpin for Cascade<A, B>
impl<A, B> UnsafeUnpin for Cascade<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for Cascade<A, B>where
A: UnwindSafe,
B: UnwindSafe,
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