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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§