pub struct Config { /* private fields */ }Expand description
Global zvec runtime configuration, passed to initialize.
Implementations§
Source§impl Config
impl Config
pub fn new() -> Result<Self>
pub fn memory_limit_bytes(&self) -> u64
pub fn set_memory_limit_bytes(&mut self, bytes: u64) -> Result<()>
pub fn log_type(&self) -> LogType
Sourcepub fn set_log_config(&mut self, log: LogConfig) -> Result<()>
pub fn set_log_config(&mut self, log: LogConfig) -> Result<()>
Take ownership of log and install it on this config.
pub fn query_thread_count(&self) -> u32
pub fn set_query_thread_count(&mut self, n: u32) -> Result<()>
pub fn invert_to_forward_scan_ratio(&self) -> f32
pub fn set_invert_to_forward_scan_ratio(&mut self, ratio: f32) -> Result<()>
pub fn brute_force_by_keys_ratio(&self) -> f32
pub fn set_brute_force_by_keys_ratio(&mut self, ratio: f32) -> Result<()>
pub fn optimize_thread_count(&self) -> u32
pub fn set_optimize_thread_count(&mut self, n: u32) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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