pub struct TestingStorage { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for TestingStorage
impl Clone for TestingStorage
Source§fn clone(&self) -> TestingStorage
fn clone(&self) -> TestingStorage
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 SiemComponentStateStorage for TestingStorage
impl SiemComponentStateStorage for TestingStorage
Source§fn get_value(&self, key: &str) -> Result<String, StorageError>
fn get_value(&self, key: &str) -> Result<String, StorageError>
Read a key value from the database
Source§fn set_value(
&mut self,
key: &str,
value: LogString,
replace: bool,
) -> Result<(), StorageError>
fn set_value( &mut self, key: &str, value: LogString, replace: bool, ) -> Result<(), StorageError>
Write to the database a key/value pair
Source§fn get_file_size(&self, filepath: &str) -> Result<u64, StorageError>
fn get_file_size(&self, filepath: &str) -> Result<u64, StorageError>
Get the size of a file
Source§fn get_file_range(
&self,
filepath: &str,
start: u64,
end: u64,
) -> Result<Vec<u8>, StorageError>
fn get_file_range( &self, filepath: &str, start: u64, end: u64, ) -> Result<Vec<u8>, StorageError>
Get a file part
Source§fn set_file(
&mut self,
filepath: &str,
content: Vec<u8>,
) -> Result<(), StorageError>
fn set_file( &mut self, filepath: &str, content: Vec<u8>, ) -> Result<(), StorageError>
Sets the content of a file
Source§fn set_file_range(
&mut self,
filepath: &str,
content: Vec<u8>,
_start: u64,
_end: u64,
) -> Result<(), StorageError>
fn set_file_range( &mut self, filepath: &str, content: Vec<u8>, _start: u64, _end: u64, ) -> Result<(), StorageError>
Sets the content of a file
fn duplicate(&self) -> Box<dyn SiemComponentStateStorage>
Auto Trait Implementations§
impl Freeze for TestingStorage
impl RefUnwindSafe for TestingStorage
impl Send for TestingStorage
impl Sync for TestingStorage
impl Unpin for TestingStorage
impl UnwindSafe for TestingStorage
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