Struct nash_protocol::protocol::State [−][src]
pub struct State {
pub signer: Option<Signer>,
pub asset_nonces: Option<HashMap<String, Vec<u32>>>,
pub markets: Option<HashMap<String, Market>>,
pub assets: Option<Vec<Asset>>,
pub remaining_orders: AtomicU64,
pub affiliate_code: Option<String>,
pub assets_nonces_refresh: bool,
pub dont_sign_states: bool,
pub place_order_semaphore: Arc<Semaphore>,
pub sign_all_states_semaphore: Arc<Semaphore>,
pub k1_fill_pool_semaphore: Arc<Semaphore>,
pub r1_fill_pool_semaphore: Arc<Semaphore>,
}Expand description
Client state shared across the protocol.
Fields
signer: Option<Signer>asset_nonces: Option<HashMap<String, Vec<u32>>>markets: Option<HashMap<String, Market>>assets: Option<Vec<Asset>>remaining_orders: AtomicU64affiliate_code: Option<String>assets_nonces_refresh: booldont_sign_states: boolplace_order_semaphore: Arc<Semaphore>sign_all_states_semaphore: Arc<Semaphore>k1_fill_pool_semaphore: Arc<Semaphore>r1_fill_pool_semaphore: Arc<Semaphore>Implementations
pub fn acquire_fill_pool_schedules<'life_self, 'async_recursion>(
&'life_self self,
chains: Option<&'async_recursion Vec<Blockchain>>,
r_val_fill_pool_threshold: Option<u32>
) -> Pin<Box<dyn Future<Output = Result<Vec<(DhFillPoolRequest, OwnedSemaphorePermit)>>> + Send + 'async_recursion>> where
'life_self: 'async_recursion,
pub fn acquire_fill_pool_schedules<'life_self, 'async_recursion>(
&'life_self self,
chains: Option<&'async_recursion Vec<Blockchain>>,
r_val_fill_pool_threshold: Option<u32>
) -> Pin<Box<dyn Future<Output = Result<Vec<(DhFillPoolRequest, OwnedSemaphorePermit)>>> + Send + 'async_recursion>> where
'life_self: 'async_recursion,
Check if pools need a refill
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for State
impl !UnwindSafe for State
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