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

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

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

Required methods

#[must_use]pub fn from<'async_trait>(
    source: T,
    state: Arc<Mutex<State>>
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
    Self: 'async_trait, 
[src]

Loading content...

Implementations on Foreign Types

impl TryFromState<ResponseData> for Vec<Trade>[src]

Loading content...

Implementors

impl TryFromState<ResponseData> for GetAccountOrderResponse[src]

impl TryFromState<ResponseData> for ListAccountOrdersResponse[src]

impl TryFromState<ResponseData> for ListAccountTradesResponse[src]

impl TryFromState<ResponseData> for ListCandlesResponse[src]

impl TryFromState<ResponseData> for ListTradesResponse[src]

Loading content...