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

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§