Struct clamd_client::Clamd
source · 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.