pub struct SqliteBufferConfig {
pub path: PathBuf,
pub cap: usize,
}Expand description
Operator configuration for the SQLite event buffer.
Deserialized from the [storage.sqlite_buffer] table of
agent-assembly.toml. Both fields are optional; omitted fields fall back to
default_path and DEFAULT_CAP.
use aa_storage_sqlite_buffer::{SqliteBufferConfig, DEFAULT_CAP};
let cfg = SqliteBufferConfig::default();
assert_eq!(cfg.cap, DEFAULT_CAP);Fields§
§path: PathBufFilesystem path to the single-file SQLite buffer database.
cap: usizeMaximum number of events retained before the oldest are evicted.
Trait Implementations§
Source§impl Clone for SqliteBufferConfig
impl Clone for SqliteBufferConfig
Source§fn clone(&self) -> SqliteBufferConfig
fn clone(&self) -> SqliteBufferConfig
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 SqliteBufferConfig
impl Debug for SqliteBufferConfig
Source§impl Default for SqliteBufferConfig
impl Default for SqliteBufferConfig
Source§impl<'de> Deserialize<'de> for SqliteBufferConfigwhere
SqliteBufferConfig: Default,
impl<'de> Deserialize<'de> for SqliteBufferConfigwhere
SqliteBufferConfig: Default,
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 SqliteBufferConfig
impl RefUnwindSafe for SqliteBufferConfig
impl Send for SqliteBufferConfig
impl Sync for SqliteBufferConfig
impl Unpin for SqliteBufferConfig
impl UnsafeUnpin for SqliteBufferConfig
impl UnwindSafe for SqliteBufferConfig
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