Struct tonic::codec::EnabledCompressionEncodings
source · [−]pub struct EnabledCompressionEncodings {}
Expand description
Struct used to configure which encodings are enabled on a server or channel.
Implementations
sourceimpl EnabledCompressionEncodings
impl EnabledCompressionEncodings
sourcepub fn is_enabled(&self, encoding: CompressionEncoding) -> bool
pub fn is_enabled(&self, encoding: CompressionEncoding) -> bool
Check if a CompressionEncoding
is enabled.
sourcepub fn enable(&mut self, encoding: CompressionEncoding)
pub fn enable(&mut self, encoding: CompressionEncoding)
Enable a CompressionEncoding
.
Trait Implementations
sourceimpl Clone for EnabledCompressionEncodings
impl Clone for EnabledCompressionEncodings
sourcefn clone(&self) -> EnabledCompressionEncodings
fn clone(&self) -> EnabledCompressionEncodings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EnabledCompressionEncodings
impl Debug for EnabledCompressionEncodings
sourceimpl Default for EnabledCompressionEncodings
impl Default for EnabledCompressionEncodings
sourcefn default() -> EnabledCompressionEncodings
fn default() -> EnabledCompressionEncodings
Returns the “default value” for a type. Read more
impl Copy for EnabledCompressionEncodings
Auto Trait Implementations
impl RefUnwindSafe for EnabledCompressionEncodings
impl Send for EnabledCompressionEncodings
impl Sync for EnabledCompressionEncodings
impl Unpin for EnabledCompressionEncodings
impl UnwindSafe for EnabledCompressionEncodings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;