Struct tonic::codec::EnabledCompressionEncodings
source · [−]pub struct EnabledCompressionEncodings { /* private fields */ }
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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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;
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;
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;