pub struct Rpc {
pub msg_type: RpcType,
pub msg_id: RpcId,
pub uid: u32,
pub payload: Option<RpcPayload>,
}
Expand description
See esp_hosted_rpc.proto
.
Fields§
§msg_type: RpcType
E.g. send a request, and receive a response or event.
msg_id: RpcId
Identifies the type of message we’re sending.
uid: u32
This is used for tracking purposes; it can be anything we want. Responses will match it.
payload: Option<RpcPayload>
Notes: A: this is semi-redundant with msg_id. B: We currently only use it for responses and events, and maily for ones that have multiple records, which we’ve having a hard time parsing with micropb.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rpc
impl RefUnwindSafe for Rpc
impl Send for Rpc
impl Sync for Rpc
impl Unpin for Rpc
impl UnwindSafe for Rpc
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