pub struct BrotliAlgorithm { /* private fields */ }Expand description
The brotli algorithm
Implementations§
Source§impl BrotliAlgorithm
impl BrotliAlgorithm
Sourcepub const fn new() -> BrotliAlgorithm
Available on crate features brotli or lz4 or snappy or zstd only.
pub const fn new() -> BrotliAlgorithm
brotli or lz4 or snappy or zstd only.Creates a new BrotliAlgorithm with the default quality and window.
Sourcepub const fn with_quality_and_window(
quality: BrotliQuality,
window: BrotliWindow,
) -> BrotliAlgorithm
Available on crate features brotli or lz4 or snappy or zstd only.
pub const fn with_quality_and_window( quality: BrotliQuality, window: BrotliWindow, ) -> BrotliAlgorithm
brotli or lz4 or snappy or zstd only.Creates a new BrotliAlgorithm with the quality and window.
Sourcepub const fn quality(&self) -> BrotliQuality
Available on crate features brotli or lz4 or snappy or zstd only.
pub const fn quality(&self) -> BrotliQuality
brotli or lz4 or snappy or zstd only.Returns the quality of the brotli algorithm.
Sourcepub const fn window(&self) -> BrotliWindow
Available on crate features brotli or lz4 or snappy or zstd only.
pub const fn window(&self) -> BrotliWindow
brotli or lz4 or snappy or zstd only.Returns the window of the brotli algorithm.
Trait Implementations§
Source§impl Arbitrary for BrotliAlgorithm
impl Arbitrary for BrotliAlgorithm
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BrotliAlgorithm
Source§impl Debug for BrotliAlgorithm
impl Debug for BrotliAlgorithm
Source§impl Default for BrotliAlgorithm
impl Default for BrotliAlgorithm
Source§fn default() -> BrotliAlgorithm
fn default() -> BrotliAlgorithm
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BrotliAlgorithm
impl<'de> Deserialize<'de> for BrotliAlgorithm
Source§fn deserialize<D>(
deserializer: D,
) -> Result<BrotliAlgorithm, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<BrotliAlgorithm, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BrotliAlgorithm
impl Display for BrotliAlgorithm
impl Eq for BrotliAlgorithm
Source§impl From<BrotliAlgorithmHelper> for BrotliAlgorithm
impl From<BrotliAlgorithmHelper> for BrotliAlgorithm
Source§fn from(helper: BrotliAlgorithmHelper) -> BrotliAlgorithm
fn from(helper: BrotliAlgorithmHelper) -> BrotliAlgorithm
Converts to this type from the input type.
Source§impl FromStr for BrotliAlgorithm
impl FromStr for BrotliAlgorithm
Source§type Err = ParseBrotliAlgorithmError
type Err = ParseBrotliAlgorithmError
The associated error which can be returned from parsing.
Source§fn from_str(
s: &str,
) -> Result<BrotliAlgorithm, <BrotliAlgorithm as FromStr>::Err>
fn from_str( s: &str, ) -> Result<BrotliAlgorithm, <BrotliAlgorithm as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for BrotliAlgorithm
impl Hash for BrotliAlgorithm
Source§impl PartialEq for BrotliAlgorithm
impl PartialEq for BrotliAlgorithm
Source§fn eq(&self, other: &BrotliAlgorithm) -> bool
fn eq(&self, other: &BrotliAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BrotliAlgorithm
impl Serialize for BrotliAlgorithm
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 UnsafeUnpin 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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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