pub struct BrotliAlgorithm { /* private fields */ }Expand description
The brotli algorithm
Implementations§
Source§impl BrotliAlgorithm
impl BrotliAlgorithm
Sourcepub const fn new() -> BrotliAlgorithm
pub const fn new() -> BrotliAlgorithm
Creates a new BrotliAlgorithm with the default quality and window.
Sourcepub const fn with_quality_and_window(
quality: BrotliQuality,
window: BrotliWindow,
) -> BrotliAlgorithm
pub const fn with_quality_and_window( quality: BrotliQuality, window: BrotliWindow, ) -> BrotliAlgorithm
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
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 · 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§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
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§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 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<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