#[non_exhaustive]pub enum MeshDbFrame {
Request(MeshDbRequest),
Response(MeshDbResponse),
}Expand description
Single wire frame for SUBPROTOCOL_MESHDB. The subprotocol is
bidirectional — both sides can be initiator and responder for
different in-flight calls — so the on-wire envelope tags
whether the payload is a request or a response. The dispatcher
reads the tag to route to the local server (for Requests) or
to the matching in-flight caller (for Responses).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Request(MeshDbRequest)
A request from this peer to us, addressed to our local
MeshDbInboundRouter for execution.
Response(MeshDbResponse)
A response from this peer addressed to one of our
in-flight calls; the transport demuxes by call_id.
Implementations§
Trait Implementations§
Source§impl Clone for MeshDbFrame
impl Clone for MeshDbFrame
Source§fn clone(&self) -> MeshDbFrame
fn clone(&self) -> MeshDbFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MeshDbFrame
impl Debug for MeshDbFrame
Source§impl<'de> Deserialize<'de> for MeshDbFrame
impl<'de> Deserialize<'de> for MeshDbFrame
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MeshDbFrame
impl PartialEq for MeshDbFrame
Source§fn eq(&self, other: &MeshDbFrame) -> bool
fn eq(&self, other: &MeshDbFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MeshDbFrame
impl Serialize for MeshDbFrame
impl StructuralPartialEq for MeshDbFrame
Auto Trait Implementations§
impl Freeze for MeshDbFrame
impl RefUnwindSafe for MeshDbFrame
impl Send for MeshDbFrame
impl Sync for MeshDbFrame
impl Unpin for MeshDbFrame
impl UnsafeUnpin for MeshDbFrame
impl UnwindSafe for MeshDbFrame
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