pub struct Config { /* private fields */ }Expand description
Persy configuration structure.
Lock are taken in order, should never go in deadlock so the default timeout is huge. Current default values:
cache_size = 32M cache_age_limit = 1 Day transaction_lock_timeout = 1 Day concurrent_modification_strategy = LastWin
Implementations§
source§impl Config
impl Config
pub fn new() -> Config
pub fn cache_size(&self) -> u64
pub fn cache_age_limit(&self) -> Duration
pub fn transaction_lock_timeout(&self) -> &Duration
pub fn change_cache_size(&mut self, cache_size: u64)
pub fn change_cache_age_limit(&mut self, cache_age_limit: Duration)
pub fn change_transaction_lock_timeout( &mut self, transaction_lock_timeout: Duration, )
pub fn tx_strategy(&self) -> &TxStrategy
pub fn change_tx_strategy(&mut self, strategy: TxStrategy)
Trait Implementations§
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> 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)