Struct Config

Source
pub struct Config { /* private fields */ }
Expand description

Struct to access configuration values.

Implementations§

Source§

impl Config

Source

pub fn load(&mut self, file_path: &str) -> Result<(), Error>

Load configuration from a file.

Source§

impl Config

Source

pub fn new() -> Config

Create a new configuration instance.

Source

pub fn get_log_dir(&self) -> &String

Get value of a parameter.

Source

pub fn set_log_dir(&mut self, log_dir: String)

Set value of a parameter.

Source

pub fn get_datastore_path(&self) -> &String

Get value of a parameter.

Source

pub fn set_datastore_path(&mut self, datastore_path: String)

Set value of a parameter.

Source

pub fn get_max_log_file_size(&self) -> &u32

Get value of a parameter.

Source

pub fn set_max_log_file_size(&mut self, max_log_file_size: u32)

Set value of a parameter.

Source

pub fn get_log_writer_buf_size(&self) -> &u32

Get value of a parameter.

Source

pub fn set_log_writer_buf_size(&mut self, log_writer_buf_size: u32)

Set value of a parameter.

Source

pub fn get_tran_mgr_n_buckets(&self) -> &u32

Get value of a parameter.

Source

pub fn set_tran_mgr_n_buckets(&mut self, tran_mgr_n_buckets: u32)

Set value of a parameter.

Source

pub fn get_tran_mgr_n_tran(&self) -> &u32

Get value of a parameter.

Source

pub fn set_tran_mgr_n_tran(&mut self, tran_mgr_n_tran: u32)

Set value of a parameter.

Source

pub fn get_tran_mgr_n_obj_buckets(&self) -> &u32

Get value of a parameter.

Source

pub fn set_tran_mgr_n_obj_buckets(&mut self, tran_mgr_n_obj_buckets: u32)

Set value of a parameter.

Source

pub fn get_tran_mgr_n_obj_lock(&self) -> &u32

Get value of a parameter.

Source

pub fn set_tran_mgr_n_obj_lock(&mut self, tran_mgr_n_obj_lock: u32)

Set value of a parameter.

Source

pub fn get_block_mgr_n_lock(&self) -> &u32

Get value of a parameter.

Source

pub fn set_block_mgr_n_lock(&mut self, block_mgr_n_lock: u32)

Set value of a parameter.

Source

pub fn get_free_info_n_file_lock(&self) -> &u32

Get value of a parameter.

Source

pub fn set_free_info_n_file_lock(&mut self, free_info_n_file_lock: u32)

Set value of a parameter.

Source

pub fn get_free_info_n_extent_lock(&self) -> &u32

Get value of a parameter.

Source

pub fn set_free_info_n_extent_lock(&mut self, free_info_n_extent_lock: u32)

Set value of a parameter.

Source

pub fn get_block_buf_size(&self) -> &u64

Get value of a parameter.

Source

pub fn set_block_buf_size(&mut self, block_buf_size: u64)

Set value of a parameter.

Source

pub fn get_checkpoint_data_threshold(&self) -> &u64

Get value of a parameter.

Source

pub fn set_checkpoint_data_threshold(&mut self, checkpoint_data_threshold: u64)

Set value of a parameter.

Source

pub fn get_version_retain_time(&self) -> &u32

Get value of a parameter.

Source

pub fn set_version_retain_time(&mut self, version_retain_time: u32)

Set value of a parameter.

Source

pub fn get_block_fill_ratio(&self) -> &u32

Get value of a parameter.

Source

pub fn set_block_fill_ratio(&mut self, block_fill_ratio: u32)

Set value of a parameter.

Source

pub fn get_writer_num(&self) -> &u32

Get value of a parameter.

Source

pub fn set_writer_num(&mut self, writer_num: u32)

Set value of a parameter.

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.