pub struct DatabaseConfig {
pub path: PathBuf,
pub durability: DurabilityMode,
pub event_channel_capacity: usize,
pub max_list_results: Option<usize>,
pub max_subscriptions: Option<usize>,
pub ttl_cleanup_interval_secs: Option<u64>,
pub max_cursor_buffer: usize,
pub max_sort_buffer: usize,
pub outbox: OutboxConfig,
pub shared_subscription: SharedSubscriptionConfig,
pub spawn_background_tasks: bool,
pub passphrase: Option<String>,
}Fields§
§path: PathBuf§durability: DurabilityMode§event_channel_capacity: usize§max_list_results: Option<usize>§max_subscriptions: Option<usize>§ttl_cleanup_interval_secs: Option<u64>§max_cursor_buffer: usize§max_sort_buffer: usize§outbox: OutboxConfig§spawn_background_tasks: bool§passphrase: Option<String>Implementations§
Source§impl DatabaseConfig
impl DatabaseConfig
pub fn new<P: Into<PathBuf>>(path: P) -> Self
pub fn without_background_tasks(self) -> Self
pub fn with_durability(self, mode: DurabilityMode) -> Self
pub fn with_event_capacity(self, capacity: usize) -> Self
pub fn with_max_list_results(self, max: Option<usize>) -> Self
pub fn with_max_subscriptions(self, max: Option<usize>) -> Self
pub fn with_ttl_cleanup_interval(self, interval_secs: Option<u64>) -> Self
pub fn with_outbox(self, outbox: OutboxConfig) -> Self
pub fn with_passphrase(self, passphrase: String) -> Self
Trait Implementations§
Source§impl Clone for DatabaseConfig
impl Clone for DatabaseConfig
Source§fn clone(&self) -> DatabaseConfig
fn clone(&self) -> DatabaseConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DatabaseConfig
impl Debug for DatabaseConfig
Auto Trait Implementations§
impl Freeze for DatabaseConfig
impl RefUnwindSafe for DatabaseConfig
impl Send for DatabaseConfig
impl Sync for DatabaseConfig
impl Unpin for DatabaseConfig
impl UnsafeUnpin for DatabaseConfig
impl UnwindSafe for DatabaseConfig
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