gadget_sdk::network::messagingTrait MessageMetadata
Source pub trait MessageMetadata {
type JobId: Display + Hash + Eq + Copy + Send + Sync + 'static;
type PeerId: Display + Hash + Eq + Copy + Send + Sync + 'static;
type MessageId: Add<usize, Output = Self::MessageId> + Eq + PartialEq + Display + Hash + Ord + PartialOrd + Copy + Send + Sync + 'static;
// Required methods
fn job_id(&self) -> Self::JobId;
fn source_id(&self) -> Self::PeerId;
fn destination_id(&self) -> Self::PeerId;
fn message_id(&self) -> Self::MessageId;
fn contents(&self) -> &[u8] ⓘ;
}