Trait client2::proto::EnvelopedMessage
source · pub trait EnvelopedMessage: Clone + Debug + Serialize + Sized + Send + Sync + 'static {
const NAME: &'static str;
const PRIORITY: MessagePriority;
// Required methods
fn into_envelope(
self,
id: u32,
responding_to: Option<u32>,
original_sender_id: Option<PeerId>
) -> Envelope;
fn from_envelope(envelope: Envelope) -> Option<Self>;
}