Struct usiem::components::common::DummyStateStorage
source · pub struct DummyStateStorage {}
Trait Implementations
sourceimpl Clone for DummyStateStorage
impl Clone for DummyStateStorage
sourcefn clone(&self) -> DummyStateStorage
fn clone(&self) -> DummyStateStorage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl SiemComponentStateStorage for DummyStateStorage
impl SiemComponentStateStorage for DummyStateStorage
sourcefn get_value(&self, _key: Cow<'static, str>) -> Result<String, StorageError>
fn get_value(&self, _key: Cow<'static, str>) -> Result<String, StorageError>
Read a key value from the database
sourcefn set_value(
&mut self,
_key: Cow<'static, str>,
_value: String,
_replace: bool
) -> Result<(), StorageError>
fn set_value(
&mut self,
_key: Cow<'static, str>,
_value: String,
_replace: bool
) -> Result<(), StorageError>
Write to the database a key/value pair
sourcefn get_file_size(&self, _filepath: String) -> Result<u64, StorageError>
fn get_file_size(&self, _filepath: String) -> Result<u64, StorageError>
Get the size of a file
sourcefn get_file_range(
&self,
_filepath: String,
_start: u64,
_end: u64
) -> Result<Vec<u8>, StorageError>
fn get_file_range(
&self,
_filepath: String,
_start: u64,
_end: u64
) -> Result<Vec<u8>, StorageError>
Get a file part
sourcefn set_file(
&mut self,
_filepath: String,
_content: Vec<u8>
) -> Result<(), StorageError>
fn set_file(
&mut self,
_filepath: String,
_content: Vec<u8>
) -> Result<(), StorageError>
Sets the content of a file
sourcefn set_file_range(
&mut self,
_filepath: String,
_content: Vec<u8>,
_start: u64,
_end: u64
) -> Result<(), StorageError>
fn set_file_range(
&mut self,
_filepath: String,
_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 RefUnwindSafe for DummyStateStorage
impl Send for DummyStateStorage
impl Sync for DummyStateStorage
impl Unpin for DummyStateStorage
impl UnwindSafe for DummyStateStorage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more