pub struct Clamd { /* private fields */ }Implementations§
Source§impl Clamd
impl Clamd
Sourcepub fn local_connect<P: AsRef<Path>>(sock: P) -> Result<Clamd>
pub fn local_connect<P: AsRef<Path>>(sock: P) -> Result<Clamd>
Connect to clamd with specificated socket
Sourcepub fn ping(&mut self) -> Result<String>
pub fn ping(&mut self) -> Result<String>
Check the daemon’s state. It should reply with “PONG\0”.
Sourcepub fn scan<P: AsRef<Path>>(&mut self, path: P) -> Result<String>
pub fn scan<P: AsRef<Path>>(&mut self, path: P) -> Result<String>
Scan a file or directory (recursively).
Sourcepub fn contscan<P: AsRef<Path>>(&mut self, path: P) -> Result<String>
pub fn contscan<P: AsRef<Path>>(&mut self, path: P) -> Result<String>
Scan a file or directory (recursively) and don’t stop the scanning when a malware found.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Clamd
impl RefUnwindSafe for Clamd
impl Send for Clamd
impl Sync for Clamd
impl Unpin for Clamd
impl UnwindSafe for Clamd
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