pub struct UnaryResponse {
pub message: Vec<u8>,
pub headers: Metadata,
pub trailers: Metadata,
}Expand description
A completed single-response call.
Fields§
§message: Vec<u8>§headers: MetadataInitial metadata (response headers).
trailers: MetadataTrailing metadata — not the same thing, and often where the detail is.
Trait Implementations§
Source§impl Clone for UnaryResponse
impl Clone for UnaryResponse
Source§fn clone(&self) -> UnaryResponse
fn clone(&self) -> UnaryResponse
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 Freeze for UnaryResponse
impl RefUnwindSafe for UnaryResponse
impl Send for UnaryResponse
impl Sync for UnaryResponse
impl Unpin for UnaryResponse
impl UnsafeUnpin for UnaryResponse
impl UnwindSafe for UnaryResponse
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