pub struct RpcSvrReq<'a> {
pub seq: u64,
pub action: RpcAction<'a>,
pub msg: &'a [u8],
pub blob: Option<Buffer>,
}Expand description
A temporary struct to hold data buffer return by ServerTransport
NOTE: RpcAction and msg contains slice that reference to ServerTransport’s internal buffer,
you should parse and clone them.
Fields§
§seq: u64§action: RpcAction<'a>§msg: &'a [u8]§blob: Option<Buffer>Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RpcSvrReq<'a>
impl<'a> RefUnwindSafe for RpcSvrReq<'a>
impl<'a> Send for RpcSvrReq<'a>
impl<'a> Sync for RpcSvrReq<'a>
impl<'a> Unpin for RpcSvrReq<'a>
impl<'a> UnwindSafe for RpcSvrReq<'a>
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