pub struct FileStore { /* private fields */ }Expand description
A file-based storage implementation that stores each key-value pair as a separate file.
Uses CSV serialization with URL-encoded filenames for human-readable storage.
Each record is stored in a .dat file within the configured directory.
Implementations§
Trait Implementations§
Source§impl Repository for FileStore
impl Repository for FileStore
Source§fn insert_entry(&mut self, key: &str, value: &str) -> Result<(), Self::Error>
fn insert_entry(&mut self, key: &str, value: &str) -> Result<(), Self::Error>
Insert a key-value pair into the repository. Read more
Source§fn get_entry(&self, key: &str) -> Result<Option<Self::V>, Self::Error>
fn get_entry(&self, key: &str) -> Result<Option<Self::V>, Self::Error>
Retrieve the value associated with the given key from the repository. Read more
Source§fn remove_entry(&mut self, key: &str) -> Result<Option<Self::V>, Self::Error>
fn remove_entry(&mut self, key: &str) -> Result<Option<Self::V>, Self::Error>
Remove the value associated with the given key from the repository. Read more
Source§impl Storage for FileStore
impl Storage for FileStore
Source§type Repo = FileStore
type Repo = FileStore
The repository type that this storage uses for low-level key-value operations.
Source§type KeyUnifier = CsvSerializer
type KeyUnifier = CsvSerializer
Unifier type used to serialize/deserialize keys.
Source§type ValueUnifier = CsvSerializer
type ValueUnifier = CsvSerializer
Unifier type used to serialize/deserialize values.
Source§type Container = Vec<BufferOp>
type Container = Vec<BufferOp>
Container for buffer operations that can be applied to the repository.
Source§fn repository(&self) -> &Self::Repo
fn repository(&self) -> &Self::Repo
Returns a reference to the underlying repository.
Source§fn repository_mut(&mut self) -> &mut Self::Repo
fn repository_mut(&mut self) -> &mut Self::Repo
Returns a mutable reference to the underlying repository.
Auto Trait Implementations§
impl Freeze for FileStore
impl RefUnwindSafe for FileStore
impl Send for FileStore
impl Sync for FileStore
impl Unpin for FileStore
impl UnsafeUnpin for FileStore
impl UnwindSafe for FileStore
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