Struct tonic::Response [−][src]
pub struct Response<T> { /* fields omitted */ }
Expand description
A gRPC response and metadata from an RPC call.
Implementations
Create a new gRPC response.
Response::new(HelloReply {
message: format!("Hello, {}!", name).into(),
});
Get a reference to the custom response metadata.
Get a mutable reference to the response metadata.
Consumes self
, returning the message
Returns a reference to the associated extensions.
Returns a mutable reference to the associated extensions.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Response<T>
impl<T> !UnwindSafe for Response<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more