Struct usiem::components::dataset::holder::DatasetHolder
source · pub struct DatasetHolder { /* private fields */ }
Expand description
The dataset holder allows access to the latest version of a dataset almost instantly without the need to check if there is an update of a dataset using a channel as was done previously. Although you have to resort to two calls to unsafe since pointers are used
Implementations
sourceimpl DatasetHolder
impl DatasetHolder
pub fn new() -> Self
pub fn from_datasets(list: Vec<SiemDataset>) -> Self
pub fn get(&self, key: &SiemDatasetType) -> Option<&SiemDataset>
pub fn subset(&self, list: Vec<SiemDatasetType>) -> Self
Trait Implementations
sourceimpl Clone for DatasetHolder
impl Clone for DatasetHolder
sourcefn clone(&self) -> DatasetHolder
fn clone(&self) -> DatasetHolder
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 Default for DatasetHolder
impl Default for DatasetHolder
sourcefn default() -> DatasetHolder
fn default() -> DatasetHolder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for DatasetHolder
impl Send for DatasetHolder
impl Sync for DatasetHolder
impl Unpin for DatasetHolder
impl UnwindSafe for DatasetHolder
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