pub struct Query {
pub origin: Option<AccountId>,
pub payload: Vec<u8>,
pub reply_tx: OneshotSender,
}Expand description
A query from an external RPC request.
Fields§
§origin: Option<AccountId>The account sending the query.
payload: Vec<u8>The query payload.
reply_tx: OneshotSenderThe reply channel. Invoke send on this channel to send the reply.
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
impl UnwindSafe for Query
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