pub struct LayerConfiguration<L = DiskLayer> {
pub layer: L,
pub write_through: bool,
pub read_cache: bool,
}
Expand description
A configuration for a layer in a LayeredDisk
.
Fields§
§layer: L
The backing store for the layer.
write_through: bool
Writes are written both to this layer and the next one.
read_cache: bool
Reads that miss this layer are written back to this layer.
Auto Trait Implementations§
impl<L> Freeze for LayerConfiguration<L>where
L: Freeze,
impl<L> RefUnwindSafe for LayerConfiguration<L>where
L: RefUnwindSafe,
impl<L> Send for LayerConfiguration<L>where
L: Send,
impl<L> Sync for LayerConfiguration<L>where
L: Sync,
impl<L> Unpin for LayerConfiguration<L>where
L: Unpin,
impl<L> UnwindSafe for LayerConfiguration<L>where
L: 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