pub struct PagerConfig {
pub cache_size: usize,
pub read_only: bool,
pub create: bool,
pub verify_checksums: bool,
pub double_write: bool,
pub encryption: Option<SecureKey>,
}Expand description
Pager configuration
Fields§
§cache_size: usizePage cache capacity
read_only: boolWhether to open read-only
create: boolWhether to create if not exists
verify_checksums: boolWhether to verify checksums on read
double_write: boolEnable double-write buffer for torn page protection
encryption: Option<SecureKey>Optional encryption key. When set, Pager::open writes/reads
pages through PageEncryptor and rejects any DB whose
encryption-marker disagrees with the supplied key (or its
absence). When None, the pager refuses to open a DB whose
header carries the RDBE encryption marker.
Trait Implementations§
Source§impl Clone for PagerConfig
impl Clone for PagerConfig
Source§fn clone(&self) -> PagerConfig
fn clone(&self) -> PagerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PagerConfig
impl Debug for PagerConfig
Auto Trait Implementations§
impl Freeze for PagerConfig
impl RefUnwindSafe for PagerConfig
impl Send for PagerConfig
impl Sync for PagerConfig
impl Unpin for PagerConfig
impl UnsafeUnpin for PagerConfig
impl UnwindSafe for PagerConfig
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request