Trait mithril_common::messages::ToMessageAdapter

source ·
pub trait ToMessageAdapter<U, V>
where V: Serialize + for<'a> Deserialize<'a>,
{ // Required method fn adapt(from: U) -> V; }
Expand description

To message adapter trait

Required Methods§

source

fn adapt(from: U) -> V

Adapt message to entity

Object Safety§

This trait is not object safe.

Implementors§