pub struct Options {
pub read_only: bool,
pub roll_metadata_key_byte_count: u64,
pub pre_commit_hook: PreCommitHook,
pub post_commit_hook: PostCommitHook,
pub skip_initial_reap: bool,
pub trim_config: Option<(Duration, Duration)>,
pub image_builder_mode: Option<SuperBlockInstance>,
pub inline_crypto_enabled: bool,
pub barriers_enabled: bool,
}Fields§
§read_only: boolTrue if the filesystem is read-only.
roll_metadata_key_byte_count: u64The metadata keys will be rolled after this many bytes. This must be large enough such that we can’t end up with more than two live keys (so it must be bigger than the maximum possible size of unflushed journal contents). This is exposed for testing purposes.
pre_commit_hook: PreCommitHookA callback that runs before every transaction is committed. If this callback returns an error then the transaction is failed with that error.
post_commit_hook: PostCommitHookA callback that runs after every transaction has been committed. This will be called whilst a lock is held which will block more transactions from being committed.
skip_initial_reap: boolIf true, don’t do an initial reap of the graveyard at mount time. This is useful for testing.
trim_config: Option<(Duration, Duration)>§image_builder_mode: Option<SuperBlockInstance>§inline_crypto_enabled: bool§barriers_enabled: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl !RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl !UnwindSafe for Options
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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