pub struct MigrationWritePolicy { /* private fields */ }Expand description
Captured disk-guard settings and shared volume-lock directory for a SQLite writer.
Construction validates configuration without reading or writing a database. Cooperating callers must choose the same absolute volume-lock directory.
Implementations§
Source§impl MigrationWritePolicy
impl MigrationWritePolicy
pub fn new( disk_guard: EffectiveDiskGuardConfig, volume_lock_dir: impl Into<PathBuf>, ) -> Result<Self, SqliteError>
Sourcepub fn from_environment() -> Result<Self, SqliteError>
pub fn from_environment() -> Result<Self, SqliteError>
Resolve both settings from the process environment. The lock directory
follows crate::default_volume_lock_dir, the same per-user default the
public SQLite constructors use.
pub fn disk_guard_config(&self) -> EffectiveDiskGuardConfig
pub fn volume_lock_dir(&self) -> &Path
Trait Implementations§
Source§impl Clone for MigrationWritePolicy
impl Clone for MigrationWritePolicy
Auto Trait Implementations§
impl Freeze for MigrationWritePolicy
impl RefUnwindSafe for MigrationWritePolicy
impl Send for MigrationWritePolicy
impl Sync for MigrationWritePolicy
impl Unpin for MigrationWritePolicy
impl UnsafeUnpin for MigrationWritePolicy
impl UnwindSafe for MigrationWritePolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more