Enum salvo::prelude::CompressionAlgo
source · #[non_exhaustive]
pub enum CompressionAlgo {
Gzip,
Deflate,
Brotli,
}
Available on crate feature
compression
only.Expand description
CompressionAlgo
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Clone for CompressionAlgo
impl Clone for CompressionAlgo
source§fn clone(&self) -> CompressionAlgo
fn clone(&self) -> CompressionAlgo
Returns a copy 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 CompressionAlgo
impl Debug for CompressionAlgo
source§impl FromStr for CompressionAlgo
impl FromStr for CompressionAlgo
source§impl PartialEq<CompressionAlgo> for CompressionAlgo
impl PartialEq<CompressionAlgo> for CompressionAlgo
source§fn eq(&self, other: &CompressionAlgo) -> bool
fn eq(&self, other: &CompressionAlgo) -> bool
impl Copy for CompressionAlgo
impl Eq for CompressionAlgo
impl StructuralEq for CompressionAlgo
impl StructuralPartialEq for CompressionAlgo
Auto Trait Implementations§
impl RefUnwindSafe for CompressionAlgo
impl Send for CompressionAlgo
impl Sync for CompressionAlgo
impl Unpin for CompressionAlgo
impl UnwindSafe for CompressionAlgo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
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>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<Key, T> QuotaGetter<Key> for Twhere
Key: 'static + Hash + Eq + Send + Sync,
T: 'static + Clone + Send + Sync,
impl<Key, T> QuotaGetter<Key> for Twhere
Key: 'static + Hash + Eq + Send + Sync,
T: 'static + Clone + Send + Sync,
§type Error = Infallible
type Error = Infallible
Error type.
source§fn get<'life0, 'life1, 'async_trait, Q>(
&'life0 self,
_key: &'life1 Q
) -> Pin<Box<dyn Future<Output = Result<<T as QuotaGetter<Key>>::Quota, <T as QuotaGetter<Key>>::Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Key: Borrow<Q>,
Q: Hash + Eq + Sync + 'async_trait,
T: 'async_trait,
fn get<'life0, 'life1, 'async_trait, Q>(
&'life0 self,
_key: &'life1 Q
) -> Pin<Box<dyn Future<Output = Result<<T as QuotaGetter<Key>>::Quota, <T as QuotaGetter<Key>>::Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Key: Borrow<Q>,
Q: Hash + Eq + Sync + 'async_trait,
T: 'async_trait,
Get quota.