pub struct RpcRequest {
pub id: u32,
pub method: RpcMethod,
pub target: Vec<u8>,
pub path: Vec<u8>,
pub content_type: Vec<u8>,
pub ticket: Vec<u8>,
pub body: Vec<u8>,
}Expand description
A whole request, reassembled from its fragments.
Fields§
§id: u32§method: RpcMethod§target: Vec<u8>The device id this request is addressed to. Empty means broadcast, and every drone on the pair answers it.
path: Vec<u8>Absolute path on the drone’s API, still percent-encoded, with any query.
content_type: Vec<u8>The caller’s Content-Type, or empty when it sent none.
ticket: Vec<u8>The relay ticket accompanying this call, or empty when none was sent (only the secret delivery itself travels without one).
body: Vec<u8>Trait Implementations§
Source§impl Clone for RpcRequest
impl Clone for RpcRequest
Source§impl Debug for RpcRequest
impl Debug for RpcRequest
impl Eq for RpcRequest
Source§impl PartialEq for RpcRequest
impl PartialEq for RpcRequest
impl StructuralPartialEq for RpcRequest
Auto Trait Implementations§
impl Freeze for RpcRequest
impl RefUnwindSafe for RpcRequest
impl Send for RpcRequest
impl Sync for RpcRequest
impl Unpin for RpcRequest
impl UnsafeUnpin for RpcRequest
impl UnwindSafe 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.