pub struct RpcMessage<T> {
pub header: MessageV0Header,
pub content: T,
}Expand description
RPC message containing both header metadata and deserialized content
Fields§
§header: MessageV0HeaderMessage header with sender, timestamp, kind, and tags
content: TDeserialized message content
Trait Implementations§
Source§impl<T: Clone> Clone for RpcMessage<T>
impl<T: Clone> Clone for RpcMessage<T>
Source§fn clone(&self) -> RpcMessage<T>
fn clone(&self) -> RpcMessage<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for RpcMessage<T>
impl<T: Debug> Debug for RpcMessage<T>
Source§impl<T: PartialEq> PartialEq for RpcMessage<T>
impl<T: PartialEq> PartialEq for RpcMessage<T>
impl<T: Eq> Eq for RpcMessage<T>
impl<T> StructuralPartialEq for RpcMessage<T>
Auto Trait Implementations§
impl<T> Freeze for RpcMessage<T>where
T: Freeze,
impl<T> RefUnwindSafe for RpcMessage<T>where
T: RefUnwindSafe,
impl<T> Send for RpcMessage<T>where
T: Send,
impl<T> Sync for RpcMessage<T>where
T: Sync,
impl<T> Unpin for RpcMessage<T>where
T: Unpin,
impl<T> UnwindSafe for RpcMessage<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more