pub struct CompressionMask(/* private fields */);
Expand description
A mask of page classes for compression.
This structure is only used when the in-memory database compression is enabled.
§Examples
Enable compression of object and blob header pages:
let mut mask = CompressionMask::new();
mask.obj_head(true).blob_head(true);
Implementations§
Source§impl CompressionMask
impl CompressionMask
Sourcepub fn get_obj_head(&self) -> bool
pub fn get_obj_head(&self) -> bool
Returns the current flag value.
Sourcepub fn get_obj_node(&self) -> bool
pub fn get_obj_node(&self) -> bool
Returns the current flag value.
Sourcepub fn get_blob_head(&self) -> bool
pub fn get_blob_head(&self) -> bool
Returns the current flag value.
Sourcepub fn get_blob_tail(&self) -> bool
pub fn get_blob_tail(&self) -> bool
Returns the current flag value.
Sourcepub fn fixed_rec_set(&mut self, v: bool) -> &mut Self
pub fn fixed_rec_set(&mut self, v: bool) -> &mut Self
Enables compression of fixed record pages.
Sourcepub fn get_fixed_rec_set(&self) -> bool
pub fn get_fixed_rec_set(&self) -> bool
Returns the current flag value.
Auto Trait Implementations§
impl Freeze for CompressionMask
impl RefUnwindSafe for CompressionMask
impl Send for CompressionMask
impl Sync for CompressionMask
impl Unpin for CompressionMask
impl UnwindSafe for CompressionMask
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