Struct usiem::components::dataset::geo_ip::GeoIpSynDataset
source · pub struct GeoIpSynDataset { /* private fields */ }
Implementations
sourceimpl GeoIpSynDataset
impl GeoIpSynDataset
pub fn new(
dataset: Arc<GeoIpDataset>,
comm: Sender<UpdateGeoIp>
) -> GeoIpSynDataset
sourcepub fn insert(&mut self, ip: SiemIp, net: u8, data: GeoIpInfo)
pub fn insert(&mut self, ip: SiemIp, net: u8, data: GeoIpInfo)
This method must not be used with this dataset, because no source will give you accurate data to update this dataset. Maybe some firewalls, but updating the dataset with each log information is not a good idea.
pub fn get(&self, ip: &SiemIp) -> Option<&GeoIpInfo>
Trait Implementations
sourceimpl Clone for GeoIpSynDataset
impl Clone for GeoIpSynDataset
sourcefn clone(&self) -> GeoIpSynDataset
fn clone(&self) -> GeoIpSynDataset
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 Debug for GeoIpSynDataset
impl Debug for GeoIpSynDataset
sourceimpl<'a> TryFrom<&'a SiemDataset> for &'a GeoIpSynDataset
impl<'a> TryFrom<&'a SiemDataset> for &'a GeoIpSynDataset
sourceimpl TryFrom<SiemDataset> for GeoIpSynDataset
impl TryFrom<SiemDataset> for GeoIpSynDataset
Auto Trait Implementations
impl RefUnwindSafe for GeoIpSynDataset
impl Send for GeoIpSynDataset
impl Sync for GeoIpSynDataset
impl Unpin for GeoIpSynDataset
impl UnwindSafe for GeoIpSynDataset
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