[][src]Struct persy::Config

pub struct Config { /* fields omitted */ }

Persy configuration structure.

Currend defaul values;

cache_size = 32M transaction_lock_timeout = 15 minutes concurrent_modification_strategy = LastWin

Methods

impl Config[src]

pub fn new() -> Config[src]

pub fn cache_size(&self) -> u64[src]

pub fn transaction_lock_timeout(&self) -> &Duration[src]

pub fn change_cache_size(&mut self, cache_size: u64)[src]

pub fn change_transaction_lock_timeout(
    &mut self,
    transaction_lock_timeout: Duration
)
[src]

pub fn tx_strategy(&self) -> &TxStrategy[src]

pub fn change_tx_strategy(&mut self, strategy: TxStrategy)[src]

Trait Implementations

impl Default for Config[src]

Auto Trait Implementations

impl Send for Config

impl Sync for Config

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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