mithril_common::messages

Trait TryFromMessageAdapter

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

TryFrom message adapter trait

Required Methods§

source

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

Adapt entity to message

Object Safety§

This trait is not object safe.

Implementors§