pub struct EmdbBuilder { /* private fields */ }Expand description
Builder for constructing an in-memory Emdb instance.
Implementations§
Source§impl EmdbBuilder
impl EmdbBuilder
Sourcepub fn default_ttl(self, ttl: Duration) -> Self
Available on crate feature ttl only.
pub fn default_ttl(self, ttl: Duration) -> Self
ttl only.Set the global default TTL for inserted records.
Sourcepub fn flush_policy(self, policy: FlushPolicy) -> Self
pub fn flush_policy(self, policy: FlushPolicy) -> Self
Set flush durability policy.
Trait Implementations§
Source§impl Clone for EmdbBuilder
impl Clone for EmdbBuilder
Source§fn clone(&self) -> EmdbBuilder
fn clone(&self) -> EmdbBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 EmdbBuilder
impl Debug for EmdbBuilder
Source§impl Default for EmdbBuilder
impl Default for EmdbBuilder
Source§fn default() -> EmdbBuilder
fn default() -> EmdbBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EmdbBuilder
impl RefUnwindSafe for EmdbBuilder
impl Send for EmdbBuilder
impl Sync for EmdbBuilder
impl Unpin for EmdbBuilder
impl UnsafeUnpin for EmdbBuilder
impl UnwindSafe for EmdbBuilder
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