pub struct SledConfig {
pub path: String,
pub tree: Option<String>,
pub read_from_start: bool,
pub delete_after_read: bool,
}Expand description
General Sled database configuration
Fields§
§path: StringPath to the Sled database directory.
tree: Option<String>The tree name to use as a queue. Defaults to “default”.
read_from_start: bool(Consumer only) If true, start reading from the beginning of the tree.
delete_after_read: bool(Consumer only) If true, delete messages after processing (Queue mode).
Implementations§
Trait Implementations§
Source§impl Clone for SledConfig
impl Clone for SledConfig
Source§fn clone(&self) -> SledConfig
fn clone(&self) -> SledConfig
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 SledConfig
impl Debug for SledConfig
Source§impl Default for SledConfig
impl Default for SledConfig
Source§fn default() -> SledConfig
fn default() -> SledConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SledConfig
impl<'de> Deserialize<'de> for SledConfig
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 SledConfig
impl RefUnwindSafe for SledConfig
impl Send for SledConfig
impl Sync for SledConfig
impl Unpin for SledConfig
impl UnsafeUnpin for SledConfig
impl UnwindSafe for SledConfig
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