pub struct Request {
pub id: u32,
pub deadline_ms: Option<u32>,
pub call: Call,
}Expand description
A request from the host.
On the wire: {0: 2, 1: id, 2: method, ?3: deadline_ms, 4: params}, where
params is a map, empty for methods without parameters.
Fields§
§id: u32Assigned by the host; the response echoes it.
deadline_ms: Option<u32>Relative deadline in milliseconds.
call: CallThe method and its parameters.
Trait Implementations§
impl Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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