pub struct TypedResponse<M> {
pub message: M,
pub headers: Metadata,
pub trailers: Metadata,
}Expand description
A decoded response plus both metadata blocks.
Fields§
§message: M§headers: Metadata§trailers: MetadataImplementations§
Source§impl<M> TypedResponse<M>
impl<M> TypedResponse<M>
Sourcepub fn into_inner(self) -> M
pub fn into_inner(self) -> M
Discard the metadata when only the message matters.
Trait Implementations§
Source§impl<M: Clone> Clone for TypedResponse<M>
impl<M: Clone> Clone for TypedResponse<M>
Source§fn clone(&self) -> TypedResponse<M>
fn clone(&self) -> TypedResponse<M>
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 moreAuto Trait Implementations§
impl<M> Freeze for TypedResponse<M>where
M: Freeze,
impl<M> RefUnwindSafe for TypedResponse<M>where
M: RefUnwindSafe,
impl<M> Send for TypedResponse<M>where
M: Send,
impl<M> Sync for TypedResponse<M>where
M: Sync,
impl<M> Unpin for TypedResponse<M>where
M: Unpin,
impl<M> UnsafeUnpin for TypedResponse<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for TypedResponse<M>where
M: UnwindSafe,
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