pub struct RpcRequest { /* private fields */ }Expand description
A typed request plus the adapter’s retained receive/admission ownership.
Implementations§
Source§impl RpcRequest
impl RpcRequest
pub fn new(request: Request) -> Self
pub fn retain<T: Send + Sync + 'static>(&mut self, owner: T)
pub fn into_parts(self) -> (Request, RpcOwnership)
pub fn from_parts(request: Request, ownership: RpcOwnership) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RpcRequest
impl !UnwindSafe for RpcRequest
impl Freeze for RpcRequest
impl Send for RpcRequest
impl Sync for RpcRequest
impl Unpin for RpcRequest
impl UnsafeUnpin for RpcRequest
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