mithril_common::messages

Trait TryToMessageAdapter

source
pub trait TryToMessageAdapter<U, V> {
    // Required method
    fn try_adapt(from: U) -> StdResult<V>;
}
Expand description

TryTo message adapter trait

Required Methods§

source

fn try_adapt(from: U) -> StdResult<V>

Adapt message to entity

Object Safety§

This trait is not object safe.

Implementors§