Trait mithril_common::messages::FromMessageAdapter

source ·
pub trait FromMessageAdapter<U, V> {
    // Required method
    fn adapt(from: U) -> V;
}
Expand description

From message adapter trait

Required Methods§

source

fn adapt(from: U) -> V

Adapt entity to message

Object Safety§

This trait is not object safe.

Implementors§