Struct nash_protocol::protocol::subscriptions::updated_orderbook::SubscribeOrderbook [−][src]
pub struct SubscribeOrderbook {
pub market: String,
}Fields
market: StringImplementations
pub async fn response_from_graphql(
&self,
response: ResponseOrError<ResponseData>,
_state: Arc<RwLock<State>>
) -> Result<ResponseOrError<SubscribeOrderbookResponse>>
Trait Implementations
Convert the protocol request to GraphQL from communication with Nash server
fn subscription_response_from_json<'life0, 'async_trait>(
&'life0 self,
response: Value,
state: Arc<RwLock<State>>
) -> Pin<Box<dyn Future<Output = Result<ResponseOrError<Self::SubscriptionResponse>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn subscription_response_from_json<'life0, 'async_trait>(
&'life0 self,
response: Value,
state: Arc<RwLock<State>>
) -> Pin<Box<dyn Future<Output = Result<ResponseOrError<Self::SubscriptionResponse>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Convert JSON response from incoming subscription data into protocol’s associated type
fn wrap_response_as_any_subscription<'life0, 'async_trait>(
&'life0 self,
response: Value,
state: Arc<RwLock<State>>
) -> Pin<Box<dyn Future<Output = Result<ResponseOrError<SubscriptionResponse>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Update state based on data from incoming subscription response
Auto Trait Implementations
impl RefUnwindSafe for SubscribeOrderbook
impl Send for SubscribeOrderbook
impl Sync for SubscribeOrderbook
impl Unpin for SubscribeOrderbook
impl UnwindSafe for SubscribeOrderbook
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more