pub struct ValidatedTuneRequest(/* private fields */);Expand description
A transport-neutral tune request that has passed common input validation.
Adapters use this type to share finite-number, positive-cycle-count, and tag-override
checks before calling super::prepare. The runtime also accepts an unvalidated
TuneRequest at that boundary and validates it before any database or driver work.
Implementations§
Source§impl ValidatedTuneRequest
impl ValidatedTuneRequest
Sourcepub fn as_request(&self) -> &TuneRequest
pub fn as_request(&self) -> &TuneRequest
Borrows the validated transport-neutral inputs.
Sourcepub fn into_request(self) -> TuneRequest
pub fn into_request(self) -> TuneRequest
Returns the transport-neutral inputs after validation.
Trait Implementations§
Source§impl Clone for ValidatedTuneRequest
impl Clone for ValidatedTuneRequest
Source§fn clone(&self) -> ValidatedTuneRequest
fn clone(&self) -> ValidatedTuneRequest
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 ValidatedTuneRequest
impl Debug for ValidatedTuneRequest
Source§impl PartialEq for ValidatedTuneRequest
impl PartialEq for ValidatedTuneRequest
impl StructuralPartialEq for ValidatedTuneRequest
Source§impl TryFrom<TuneRequest> for ValidatedTuneRequest
impl TryFrom<TuneRequest> for ValidatedTuneRequest
Source§type Error = TuneRequestValidationError
type Error = TuneRequestValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ValidatedTuneRequest
impl RefUnwindSafe for ValidatedTuneRequest
impl Send for ValidatedTuneRequest
impl Sync for ValidatedTuneRequest
impl Unpin for ValidatedTuneRequest
impl UnsafeUnpin for ValidatedTuneRequest
impl UnwindSafe for ValidatedTuneRequest
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].