Function clamav_client::clean

source ·
pub fn clean(response: &[u8]) -> Utf8Result
Expand description

Checks whether the ClamAV response indicates that the scanned content is clean or contains a virus

Example

let response = clamav_client::scan_buffer_tcp(br#"clean data"#, "localhost:3310", None).unwrap();
let data_clean = clamav_client::clean(&response).unwrap();