pub struct QuarantineOptions {
pub name: QuarantineStamp,
pub sidecars: SidecarPolicy,
pub move_mode: MoveMode,
pub marker: Option<PathBuf>,
}Expand description
Options for quarantine_database_opts. Default matches quarantine_database.
Fields§
§name: QuarantineStampSuffix format appended to the database file name.
sidecars: SidecarPolicyWhat happens to the -wal, -shm and -journal sidecars.
move_mode: MoveModeHow the main file and the sidecars leave their original names.
marker: Option<PathBuf>Recovery marker written atomically (owner-only) before any file moves. It is JSON:
{"schema", "original", "quarantined", "unixMs"}. It stays in place after success; the app
removes it when recovery is complete.
Trait Implementations§
Source§impl Clone for QuarantineOptions
impl Clone for QuarantineOptions
Source§impl Debug for QuarantineOptions
impl Debug for QuarantineOptions
Auto Trait Implementations§
impl Freeze for QuarantineOptions
impl RefUnwindSafe for QuarantineOptions
impl Send for QuarantineOptions
impl Sync for QuarantineOptions
impl Unpin for QuarantineOptions
impl UnsafeUnpin for QuarantineOptions
impl UnwindSafe for QuarantineOptions
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