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§
- Clamd
Client - 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. - Clamd
Client Builder - Builder for
ClamdClient
.
Enums§
- Clamd
Error - Errors that can occur when using
ClamdClient
.
Constants§
- DEFAULT_
CHUNK_ SIZE - Default chunk size used by
ClamdClient
while streaming bytes toclamd
.