Struct dubbo::invocation::Response
source · [−]pub struct Response<T> { /* private fields */ }
Implementations
sourceimpl<T> Response<T>
impl<T> Response<T>
pub fn new(message: T) -> Response<T>
pub fn from_parts(metadata: Metadata, message: T) -> Self
pub fn into_parts(self) -> (Metadata, T)
pub fn into_http(self) -> Response<T>
pub fn from_http(resp: Response<T>) -> Self
pub fn map<F, U>(self, f: F) -> Response<U>where
F: FnOnce(T) -> U,
Auto Trait Implementations
impl<T> RefUnwindSafe for Response<T>where
T: RefUnwindSafe,
impl<T> Send for Response<T>where
T: Send,
impl<T> Sync for Response<T>where
T: Sync,
impl<T> Unpin for Response<T>where
T: Unpin,
impl<T> UnwindSafe for Response<T>where
T: UnwindSafe,
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>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request