Struct body_image::Tuner[][src]

pub struct Tuner { /* fields omitted */ }

A builder for Tunables. Invariants are asserted in the various setters and finish.

Methods

impl Tuner
[src]

New Tuner with all Tunables defaults.

Set the maximum body size in bytes allowed in RAM.

Set the maximum body size in bytes allowed in any form (RAM or file). This must be at least as large as max_body_ram, as asserted on finish.

Set the buffer size in bytes to use when buffering for output in RAM.

Set the buffer size in bytes to use when buffering for output to the file-system.

Set the size estimate, as an integer multiple of the encoded buffer size, for the deflate compression algorithm.

Set the size estimate, as an integer multiple of the encoded buffer size, for the gzip compression algorithm.

Set the size estimate, as an integer multiple of the encoded buffer size, for the Brotli compression algorithm.

Set the path in which to write temporary files.

Set the maximum initial response timeout interval.

Set the maximum streaming body timeout interval.

Finish building, asserting any remaining invariants, and return a new Tunables instance.

Trait Implementations

impl Clone for Tuner
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Tuner
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Tuner

impl Sync for Tuner