[−][src]Struct extremedb::database::CompressionMask
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
impl CompressionMask
[src]
pub fn new() -> Self
[src]
Creates a new compression mask filled with zeroes.
pub fn obj_head(&mut self, v: bool) -> &mut Self
[src]
Enables compression of object header pages.
pub fn get_obj_head(&self) -> bool
[src]
Returns the current flag value.
pub fn obj_node(&mut self, v: bool) -> &mut Self
[src]
Enables compression of object node pages.
pub fn get_obj_node(&self) -> bool
[src]
Returns the current flag value.
pub fn blob_head(&mut self, v: bool) -> &mut Self
[src]
Enables compression of blob header pages.
pub fn get_blob_head(&self) -> bool
[src]
Returns the current flag value.
pub fn blob_tail(&mut self, v: bool) -> &mut Self
[src]
Enables compression of blob tail pages.
pub fn get_blob_tail(&self) -> bool
[src]
Returns the current flag value.
pub fn fixed_rec_set(&mut self, v: bool) -> &mut Self
[src]
Enables compression of fixed record pages.
pub fn get_fixed_rec_set(&self) -> bool
[src]
Returns the current flag value.
Auto Trait Implementations
impl RefUnwindSafe for CompressionMask
impl Send for CompressionMask
impl Sync for CompressionMask
impl Unpin for CompressionMask
impl UnwindSafe for CompressionMask
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,