pub struct MarketsClient<'a> { /* private fields */ }Expand description
Client for reading on-chain market state.
Implementations§
Source§impl<'a> MarketsClient<'a>
impl<'a> MarketsClient<'a>
Sourcepub async fn active_market_count(&self) -> Result<u64>
pub async fn active_market_count(&self) -> Result<u64>
Get the number of active markets.
Sourcepub async fn next_market_id(&self) -> Result<u64>
pub async fn next_market_id(&self) -> Result<u64>
Get the next factory market ID (total markets created).
Sourcepub async fn next_order_id(&self) -> Result<u64>
pub async fn next_order_id(&self) -> Result<u64>
Get the next order ID from the OrderBook.
Auto Trait Implementations§
impl<'a> Freeze for MarketsClient<'a>
impl<'a> !RefUnwindSafe for MarketsClient<'a>
impl<'a> Send for MarketsClient<'a>
impl<'a> Sync for MarketsClient<'a>
impl<'a> Unpin for MarketsClient<'a>
impl<'a> UnsafeUnpin for MarketsClient<'a>
impl<'a> !UnwindSafe for MarketsClient<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more