pub struct DummyStateStorage {}Trait Implementations§
Source§impl Clone for DummyStateStorage
impl Clone for DummyStateStorage
Source§fn clone(&self) -> DummyStateStorage
fn clone(&self) -> DummyStateStorage
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 DummyStateStorage
impl SiemComponentStateStorage for DummyStateStorage
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 DummyStateStorage
impl RefUnwindSafe for DummyStateStorage
impl Send for DummyStateStorage
impl Sync for DummyStateStorage
impl Unpin for DummyStateStorage
impl UnwindSafe for DummyStateStorage
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