pub enum CompactScope {
All,
SpooledOnly,
}Expand description
Which sealed sectors SensorDb::compact may erase.
Variants§
All
Every sealed sector is eligible, oldest first, replicated or not.
SpooledOnly
Only sealed sectors whose contents are fully replicated elsewhere.
Reclaims space without ever destroying data that has not been copied off the device. Erases nothing until a replica has acknowledged something — on a log with no replica this is always a no-op.
Trait Implementations§
Source§impl Clone for CompactScope
impl Clone for CompactScope
impl Copy for CompactScope
Source§impl Debug for CompactScope
impl Debug for CompactScope
Source§impl Default for CompactScope
impl Default for CompactScope
impl Eq for CompactScope
Source§impl Format for CompactScope
Available on crate feature defmt only.
impl Format for CompactScope
Available on crate feature
defmt only.Source§impl PartialEq for CompactScope
impl PartialEq for CompactScope
impl StructuralPartialEq for CompactScope
Auto Trait Implementations§
impl Freeze for CompactScope
impl RefUnwindSafe for CompactScope
impl Send for CompactScope
impl Sync for CompactScope
impl Unpin for CompactScope
impl UnsafeUnpin for CompactScope
impl UnwindSafe for CompactScope
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