pub struct RedbConfig {
pub path: String,
pub cache_size: usize,
pub cleanup_f: fn(&RedbStorageDB),
}Expand description
Configuration for the Redb storage backend
Fields§
§path: StringPath to the database file
cache_size: usizeCache size in bytes (default: 1GB)
cleanup_f: fn(&RedbStorageDB)Cleanup function for expired keys
Trait Implementations§
Source§impl Clone for RedbConfig
impl Clone for RedbConfig
Source§fn clone(&self) -> RedbConfig
fn clone(&self) -> RedbConfig
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 RedbConfig
impl Debug for RedbConfig
Source§impl Default for RedbConfig
impl Default for RedbConfig
Source§impl<'de> Deserialize<'de> for RedbConfig
impl<'de> Deserialize<'de> for RedbConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RedbConfig
impl RefUnwindSafe for RedbConfig
impl Send for RedbConfig
impl Sync for RedbConfig
impl Unpin for RedbConfig
impl UnsafeUnpin for RedbConfig
impl UnwindSafe for RedbConfig
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