Struct barc::NoCompressStrategy [−][src]
pub struct NoCompressStrategy {}
Expand description
Strategy of no (aka Plain
) compression.
Trait Implementations
fn wrap_encoder<'a>(
&self,
_rec: &dyn MetaRecorded,
file: &'a File
) -> Result<EncodeWrapper<'a>, BarcError>
fn wrap_encoder<'a>(
&self,
_rec: &dyn MetaRecorded,
file: &'a File
) -> Result<EncodeWrapper<'a>, BarcError>
Return an EncodeWrapper
for File
. This implementation
always returns a Plain
wrapper.
Return a coefficient used to weight the discount of non-compressible body bytes. Default: 0.5 Read more
Return whether to check the meta -decoded header for an “identity” value, as proof that the content-type header actually characterizes the associated body, for the purpose of counting compressible bytes. Default: false (may change in the future) Read more
Return true if the provided record has at least min_len
of
compressible bytes, from the response and request bodies and
headers. Read more
Auto Trait Implementations
impl RefUnwindSafe for NoCompressStrategy
impl Send for NoCompressStrategy
impl Sync for NoCompressStrategy
impl Unpin for NoCompressStrategy
impl UnwindSafe for NoCompressStrategy
Blanket Implementations
Mutably borrows from an owned value. Read more