pub struct ClamdClientBuilder<'a> { /* private fields */ }
Expand description

Builder for ClamdClient.

Example

let address = "127.0.0.1:3310".parse::<SocketAddr>()?;
let mut clamd_client = ClamdClientBuilder::tcp_socket(&address).chunk_size(4096).build();

Implementations

Build a ClamdClient from the path to the unix socket of clamd.

Build a ClamdClient from the socket address to the tcp socket of clamd.

Set the chunk size for file streaming. Default is DEFAULT_CHUNK_SIZE.

Create ClamdClient with provided configuration.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more