pub struct CanonicalCodecOptions { /* private fields */ }Expand description
One owned cancellation/deadline/limit policy captured for a codec invocation.
Implementations§
Source§impl CanonicalCodecOptions
impl CanonicalCodecOptions
Sourcepub fn with_limits(self, limits: CanonicalCodecLimits) -> Self
pub fn with_limits(self, limits: CanonicalCodecLimits) -> Self
Use exact tighten-only codec limits.
Sourcepub fn with_cancellation(self, cancellation: AnswerCancellation) -> Self
pub fn with_cancellation(self, cancellation: AnswerCancellation) -> Self
Use one independently owned sticky cancellation signal.
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Apply a relative timeout captured once as a monotonic deadline at invocation.
Trait Implementations§
Source§impl Clone for CanonicalCodecOptions
impl Clone for CanonicalCodecOptions
Source§fn clone(&self) -> CanonicalCodecOptions
fn clone(&self) -> CanonicalCodecOptions
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 moreSource§impl Debug for CanonicalCodecOptions
impl Debug for CanonicalCodecOptions
Source§impl Default for CanonicalCodecOptions
impl Default for CanonicalCodecOptions
Source§fn default() -> CanonicalCodecOptions
fn default() -> CanonicalCodecOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CanonicalCodecOptions
impl !UnwindSafe for CanonicalCodecOptions
impl Freeze for CanonicalCodecOptions
impl Send for CanonicalCodecOptions
impl Sync for CanonicalCodecOptions
impl Unpin for CanonicalCodecOptions
impl UnsafeUnpin for CanonicalCodecOptions
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<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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request