Enum nash_protocol::protocol::NashProtocolRequest [−][src]
pub enum NashProtocolRequest {
AssetNonces(AssetNoncesRequest),
DhFill(DhFillPoolRequest, Option<Arc<Mutex<Option<OwnedSemaphorePermit>>>>),
LimitOrder(LimitOrderRequest),
Orderbook(OrderbookRequest),
CancelOrders(CancelAllOrders),
SignState(SignStatesRequest),
ListMarkets(ListMarketsRequest),
}Expand description
An enum wrapping all the different protocol requests
Variants
AssetNonces(AssetNoncesRequest)Tuple Fields of AssetNonces
DhFill(DhFillPoolRequest, Option<Arc<Mutex<Option<OwnedSemaphorePermit>>>>)Tuple Fields of DhFill
LimitOrder(LimitOrderRequest)Tuple Fields of LimitOrder
Orderbook(OrderbookRequest)Tuple Fields of Orderbook
CancelOrders(CancelAllOrders)Tuple Fields of CancelOrders
SignState(SignStatesRequest)Tuple Fields of SignState
ListMarkets(ListMarketsRequest)Tuple Fields of ListMarkets
Trait Implementations
Implement NashProtocol for the enum, threading through to the base implementation for each of the captured types. This could probably be automated wiht a macro.
type Response = NashProtocolResponse
If you want to limit the amount of concurrency of a protocol return a Semaphore here
Convert the protocol request to GraphQL from communication with Nash server
Convert JSON response to request to the protocol’s associated type
Any state changes that result from execution of the protocol request The default implementation does nothing to state Read more
Any errors that result from execution of the protocol request The default implementation does nothing to state Read more
Auto Trait Implementations
impl !RefUnwindSafe for NashProtocolRequest
impl Send for NashProtocolRequest
impl Sync for NashProtocolRequest
impl Unpin for NashProtocolRequest
impl !UnwindSafe for NashProtocolRequest
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