pub struct GzipOptions {
pub level: Option<u32>,
pub header_mode: GzipHeaderMode,
}Expand description
Gzip option metadata.
Fields§
§level: Option<u32>Numeric gzip level, when specified by the caller.
header_mode: GzipHeaderModeGzip header metadata strategy.
Implementations§
Source§impl GzipOptions
impl GzipOptions
Sourcepub const fn with_level(self, level: u32) -> Self
pub const fn with_level(self, level: u32) -> Self
Adds a numeric compression level label.
Sourcepub const fn with_header_mode(self, header_mode: GzipHeaderMode) -> Self
pub const fn with_header_mode(self, header_mode: GzipHeaderMode) -> Self
Sets the gzip header metadata strategy.
Trait Implementations§
Source§impl Clone for GzipOptions
impl Clone for GzipOptions
Source§fn clone(&self) -> GzipOptions
fn clone(&self) -> GzipOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GzipOptions
impl Debug for GzipOptions
Source§impl Default for GzipOptions
impl Default for GzipOptions
Source§fn default() -> GzipOptions
fn default() -> GzipOptions
Returns the “default value” for a type. Read more
Source§impl Hash for GzipOptions
impl Hash for GzipOptions
Source§impl Ord for GzipOptions
impl Ord for GzipOptions
Source§fn cmp(&self, other: &GzipOptions) -> Ordering
fn cmp(&self, other: &GzipOptions) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GzipOptions
impl PartialEq for GzipOptions
Source§fn eq(&self, other: &GzipOptions) -> bool
fn eq(&self, other: &GzipOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GzipOptions
impl PartialOrd for GzipOptions
impl Copy for GzipOptions
impl Eq for GzipOptions
impl StructuralPartialEq for GzipOptions
Auto Trait Implementations§
impl Freeze for GzipOptions
impl RefUnwindSafe for GzipOptions
impl Send for GzipOptions
impl Sync for GzipOptions
impl Unpin for GzipOptions
impl UnsafeUnpin for GzipOptions
impl UnwindSafe for GzipOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more