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]

[src]

New Tuner with all Tunables defaults.

[src]

Set the maximum body size in bytes allowed in RAM.

[src]

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.

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Set the path in which to write temporary files.

[src]

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

Trait Implementations

impl Clone for Tuner
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Tuner
[src]

[src]

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

Auto Trait Implementations

impl Send for Tuner

impl Sync for Tuner