pub struct ServerRequestSingle<Req> {
pub metadata: Metadata,
pub message: Req,
}Expand description
Unary request.
This object is passed to unary request handlers.
Fields§
§metadata: MetadataRequest metadata.
message: ReqThe message.
Implementations§
Source§impl<Req> ServerRequestSingle<Req>
impl<Req> ServerRequestSingle<Req>
pub fn take_message(&mut self) -> Reqwhere
Req: Default,
Auto Trait Implementations§
impl<Req> Freeze for ServerRequestSingle<Req>where
Req: Freeze,
impl<Req> RefUnwindSafe for ServerRequestSingle<Req>where
Req: RefUnwindSafe,
impl<Req> Send for ServerRequestSingle<Req>where
Req: Send,
impl<Req> Sync for ServerRequestSingle<Req>where
Req: Sync,
impl<Req> Unpin for ServerRequestSingle<Req>where
Req: Unpin,
impl<Req> UnwindSafe for ServerRequestSingle<Req>where
Req: 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