pub struct SigsDb { /* private fields */ }Expand description
The signature database on the box: <root>/clamav/ (what the sandboxed clamd reads
as its DatabaseDirectory), <root>/yara/, and <root>/installed.json.
Implementations§
Source§impl SigsDb
impl SigsDb
pub fn open(root: impl Into<PathBuf>) -> Self
pub fn root(&self) -> &Path
pub fn dir(&self, engine: Engine) -> PathBuf
pub fn installed_path(&self) -> PathBuf
Sourcepub fn installed(&self) -> Result<Option<InstalledSigs>>
pub fn installed(&self) -> Result<Option<InstalledSigs>>
What is installed; None before the first bundle (the image’s own database serves).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SigsDb
impl RefUnwindSafe for SigsDb
impl Send for SigsDb
impl Sync for SigsDb
impl Unpin for SigsDb
impl UnsafeUnpin for SigsDb
impl UnwindSafe for SigsDb
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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