pub async fn shutdown<T: TransportProtocol>(connection: T) -> IoResultExpand description
Shuts down a ClamAV server
This function establishes a connection to a ClamAV server and sends the SHUTDOWN command to it. If the server is available, it will perform a clean exit and shut itself down. The response will be empty.
§Arguments
connection: The connection type to use - either TCP or a Unix socket connection
§Returns
An IoResult containing the server’s response