Skip to main content

with_compression_level

Function with_compression_level 

Source
pub fn with_compression_level<T>(
    level: WireCompressionLevel,
    f: impl FnOnce() -> T,
) -> T
Expand description

Set the compression effort for the duration of f. Scoped so it never leaks.