Struct body_image::Tunables [] [src]

pub struct Tunables { /* fields omitted */ }

A collection of size limits and performance tuning constants. Setters are available via the Tuner class.

Methods

impl Tunables
[src]

[src]

Construct with default values.

[src]

Return the maximum body size in bytes allowed in RAM, e.g. before writing to a temporary file, or memory mapping instead of direct, bulk read. Default: 192 KiB.

[src]

Return the maximum body size in bytes allowed in any form (RAM or file). Default: 1 GiB.

[src]

Return the buffer size in bytes to use when buffering for output in RAM. Default: 8 KiB.

[src]

Return the buffer size in bytes to use when buffering for output to the file-system. Default: 64 KiB.

[src]

Return the size estimate, as an integer multiple of the encoded buffer size, for the deflate compression algorithm. Default: 4.

[src]

Return the size estimate, as an integer multiple of the encoded buffer size, for the gzip compression algorithm. Default: 5.

[src]

Return the size estimate, as an integer multiple of the encoded buffer size, for the Brotli compression algorithm. Default: 6.

[src]

Return the directory path in which to write temporary (BodyImage) files. Default: std::env::temp_dir()

Trait Implementations

impl Debug for Tunables
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Tunables
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Tunables
[src]

[src]

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

Auto Trait Implementations

impl Send for Tunables

impl Sync for Tunables