#[repr(C)]pub struct Indexer { /* private fields */ }
Expand description
Market indexer.
Implementations§
Source§impl Indexer
impl Indexer
Sourcepub fn deposit_count(&self) -> u64
pub fn deposit_count(&self) -> u64
Get current deposit count.
Sourcepub fn withdrawal_count(&self) -> u64
pub fn withdrawal_count(&self) -> u64
Get current withdrawal count.
Sourcepub fn order_count(&self) -> u64
pub fn order_count(&self) -> u64
Get current order count.
Sourcepub fn shift_count(&self) -> u64
pub fn shift_count(&self) -> u64
Get current shift count.
Sourcepub fn glv_deposit_count(&self) -> u64
pub fn glv_deposit_count(&self) -> u64
Get current GLV deposit count.
Sourcepub fn glv_withdrawal_count(&self) -> u64
pub fn glv_withdrawal_count(&self) -> u64
Get current GLV withdrawal count.
Sourcepub fn next_deposit_id(&mut self) -> Result<u64>
pub fn next_deposit_id(&mut self) -> Result<u64>
Next deposit id.
Sourcepub fn next_withdrawal_id(&mut self) -> Result<u64>
pub fn next_withdrawal_id(&mut self) -> Result<u64>
Next withdrawal id.
Sourcepub fn next_order_id(&mut self) -> Result<u64>
pub fn next_order_id(&mut self) -> Result<u64>
Next order id.
Sourcepub fn next_shift_id(&mut self) -> Result<u64>
pub fn next_shift_id(&mut self) -> Result<u64>
Next shift id.
Sourcepub fn next_glv_deposit_id(&mut self) -> Result<u64>
pub fn next_glv_deposit_id(&mut self) -> Result<u64>
Next GLV deposit id.
Sourcepub fn next_glv_withdrawal_id(&mut self) -> Result<u64>
pub fn next_glv_withdrawal_id(&mut self) -> Result<u64>
Next GLV withdrawal id.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Indexer
impl<'de> Deserialize<'de> for Indexer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Indexer
impl Pod for Indexer
Auto Trait Implementations§
impl Freeze for Indexer
impl RefUnwindSafe for Indexer
impl Send for Indexer
impl Sync for Indexer
impl Unpin for Indexer
impl UnwindSafe for Indexer
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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