pub struct PoolUpdater { /* private fields */ }Expand description
Handles [PoolSwap]s and [PoolLiquidityUpdate]s for a single AMM pool.
Implementations§
Source§impl PoolUpdater
impl PoolUpdater
Sourcepub fn new(instrument_id: &InstrumentId, cache: Rc<RefCell<Cache>>) -> Self
pub fn new(instrument_id: &InstrumentId, cache: Rc<RefCell<Cache>>) -> Self
Creates a new PoolUpdater bound to the given instrument_id and cache.
Trait Implementations§
Source§impl Debug for PoolUpdater
impl Debug for PoolUpdater
Auto Trait Implementations§
impl Freeze for PoolUpdater
impl !RefUnwindSafe for PoolUpdater
impl !Send for PoolUpdater
impl !Sync for PoolUpdater
impl Unpin for PoolUpdater
impl !UnwindSafe for PoolUpdater
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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