[][src]Struct extremedb::database::CompressionMask

pub struct 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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.