pub struct RpcReply {
pub response: Response,
/* private fields */
}Expand description
A response retains server drain or client materialization ownership until the adapter/body or SDK conversion completes. Returned user values are then caller-owned and outside the RPC materialization allowance.
Fields§
§response: ResponseImplementations§
Source§impl RpcReply
impl RpcReply
pub fn new(response: Response) -> Self
pub fn retain<T: Send + Sync + 'static>(&mut self, owner: T)
pub fn into_parts(self) -> (Response, RpcOwnership)
pub fn from_parts(response: Response, ownership: RpcOwnership) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RpcReply
impl !UnwindSafe for RpcReply
impl Freeze for RpcReply
impl Send for RpcReply
impl Sync for RpcReply
impl Unpin for RpcReply
impl UnsafeUnpin for RpcReply
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