pub async fn reload<T: TransportProtocol>(connection: T) -> IoResultExpand description
Reloads the virus databases
This function establishes a connection to a ClamAV server and sends the
RELOAD command to it. If the server is available, it responds with
RELOADING.
§Arguments
connection: The connection type to use - either TCP or a Unix socket connection
§Returns
An IoResult containing the server’s response as a vector of bytes
§Example
let clamd_tcp = clamav_client::async_std::Tcp{ host_address: "localhost:3310" };
let response = clamav_client::async_std::reload(clamd_tcp).await.unwrap();