pub struct Request<T> { /* private fields */ }
Implementations§
source§impl<T> Request<T>
impl<T> Request<T>
sourcepub fn metadata(&self) -> &MetadataMap
pub fn metadata(&self) -> &MetadataMap
Get a reference to the custom request metadata.
sourcepub fn metadata_mut(&mut self) -> &mut MetadataMap
pub fn metadata_mut(&mut self) -> &mut MetadataMap
Get a mutable reference to the request metadata.
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes self
, returning the message
pub fn into_parts(self) -> (MetadataMap, Extensions, T)
pub fn from_parts( metadata: MetadataMap, extensions: Extensions, message: T ) -> Self
pub fn from_http(http: Request<T>) -> Self
pub fn from_http_parts(parts: Parts, message: T) -> Self
sourcepub fn extensions(&self) -> &Extensions
pub fn extensions(&self) -> &Extensions
Returns a reference to the associated extensions.
sourcepub fn extensions_mut(&mut self) -> &mut Extensions
pub fn extensions_mut(&mut self) -> &mut Extensions
Returns a mutable reference to the associated extensions.
Trait Implementations§
source§impl<T> IntoRequest<T> for Request<T>
impl<T> IntoRequest<T> for Request<T>
source§fn into_request(self) -> Self
fn into_request(self) -> Self
Wrap the input message
T
in a volo_grpc::Request
source§impl<T> IntoStreamingRequest for Request<T>
impl<T> IntoStreamingRequest for Request<T>
source§impl<T, U> Service<ClientContext, Request<T>> for ClientTransport<U>
impl<T, U> Service<ClientContext, Request<T>> for ClientTransport<U>
source§impl<T, U, S> Service<ClientContext, Request<T>> for MetaService<S>
impl<T, U, S> Service<ClientContext, Request<T>> for MetaService<S>
source§impl<Cx, T, D, LB, S> Service<Cx, Request<T>> for LoadBalanceService<D, LB, S>
impl<Cx, T, D, LB, S> Service<Cx, Request<T>> for LoadBalanceService<D, LB, S>
Auto Trait Implementations§
impl<T> Freeze for Request<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Request<T>
impl<T> Send for Request<T>where
T: Send,
impl<T> Sync for Request<T>where
T: Sync,
impl<T> Unpin for Request<T>where
T: Unpin,
impl<T> !UnwindSafe for Request<T>
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> 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> 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 volo_grpc::Request