Trait nash_protocol::protocol::TryFromState[][src]

pub trait TryFromState<T>: Sized {
    fn from<'async_trait>(
        source: T,
        state: Arc<RwLock<State>>
    ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
    where
        Self: 'async_trait
; }
Expand description

Similar to TryFrom, but threads additional State in as context that is necessary to perform the conversion

Required methods

Implementations on Foreign Types

Implementors