pub struct BrotliAlgorithm { /* private fields */ }Available on (crate features
zstd or lz4 or brotli or snappy) and crate feature brotli only.Expand description
The brotli algorithm
Implementations§
Source§impl BrotliAlgorithm
impl BrotliAlgorithm
Sourcepub const fn with_quality_and_window(
quality: BrotliQuality,
window: BrotliWindow,
) -> Self
pub const fn with_quality_and_window( quality: BrotliQuality, window: BrotliWindow, ) -> Self
Creates a new BrotliAlgorithm with the quality and window.
Sourcepub const fn quality(&self) -> BrotliQuality
pub const fn quality(&self) -> BrotliQuality
Returns the quality of the brotli algorithm.
Sourcepub const fn window(&self) -> BrotliWindow
pub const fn window(&self) -> BrotliWindow
Returns the window of the brotli algorithm.
Trait Implementations§
Source§impl Arbitrary for BrotliAlgorithm
Available on crate features quickcheck only.
impl Arbitrary for BrotliAlgorithm
Available on crate features
quickcheck only.Source§impl Clone for BrotliAlgorithm
impl Clone for BrotliAlgorithm
Source§fn clone(&self) -> BrotliAlgorithm
fn clone(&self) -> BrotliAlgorithm
Returns a duplicate of the value. Read more
1.0.0 · 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 BrotliAlgorithm
impl Debug for BrotliAlgorithm
Source§impl Default for BrotliAlgorithm
impl Default for BrotliAlgorithm
Source§impl<'de> Deserialize<'de> for BrotliAlgorithm
Available on crate feature serde only.
impl<'de> Deserialize<'de> for BrotliAlgorithm
Available on crate feature
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BrotliAlgorithm
impl Display for BrotliAlgorithm
Source§impl FromStr for BrotliAlgorithm
impl FromStr for BrotliAlgorithm
Source§impl Hash for BrotliAlgorithm
impl Hash for BrotliAlgorithm
Source§impl PartialEq for BrotliAlgorithm
impl PartialEq for BrotliAlgorithm
Source§impl Serialize for BrotliAlgorithm
Available on crate feature serde only.
impl Serialize for BrotliAlgorithm
Available on crate feature
serde only.impl Copy for BrotliAlgorithm
impl Eq for BrotliAlgorithm
impl StructuralPartialEq for BrotliAlgorithm
Auto Trait Implementations§
impl Freeze for BrotliAlgorithm
impl RefUnwindSafe for BrotliAlgorithm
impl Send for BrotliAlgorithm
impl Sync for BrotliAlgorithm
impl Unpin for BrotliAlgorithm
impl UnwindSafe for BrotliAlgorithm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more