Crate clamd_client

source ·
Expand description

clamd-client

clamd-client: Rust async tokio client for clamd. Works with a tcp socket or with a unix socket. At the moment it will open a new socket for each command. While this uses some tokio library structs, in principle it should also work with other async runtimes as the this library does not depend on the tokio runtime itself. I have still to test this though.

Structs

Asynchronous, tokio based client for clamd. Use ClamdClientBuilder to build. At the moment, this will always open a new TCP connection for each command executed. There are plans to also include an option to reuse / keep alive connections but that is a TODO.

Enums

Errors that can occur when using ClamdClient.

Constants

Default chunk size used by ClamdClient while streaming bytes to clamd.