pub struct CfdSwapModule { /* private fields */ }Expand description
Simulates daily CFD swap adjustments at a configurable UTC rollover time.
Implementations§
Source§impl CfdSwapModule
impl CfdSwapModule
Trait Implementations§
Source§impl Clone for CfdSwapModule
impl Clone for CfdSwapModule
Source§fn clone(&self) -> CfdSwapModule
fn clone(&self) -> CfdSwapModule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CfdSwapModule
impl Debug for CfdSwapModule
Source§impl SimulationModule for CfdSwapModule
impl SimulationModule for CfdSwapModule
Source§fn pre_process(&self, _data: &Data) -> Result<()>
fn pre_process(&self, _data: &Data) -> Result<()>
Pre-processes market data before matching engine processing. Read more
Source§fn process(
&self,
ts_now: UnixNanos,
ctx: &ExchangeContext<'_>,
) -> Result<SimulationModuleResult>
fn process( &self, ts_now: UnixNanos, ctx: &ExchangeContext<'_>, ) -> Result<SimulationModuleResult>
Processes simulation logic at the given timestamp. Read more
Source§fn acknowledge(&self, outcomes: &[AccountAdjustmentOutcome]) -> Result<()>
fn acknowledge(&self, outcomes: &[AccountAdjustmentOutcome]) -> Result<()>
Acknowledges the ordered application outcomes for a completed batch. Read more
Auto Trait Implementations§
impl !Freeze for CfdSwapModule
impl !RefUnwindSafe for CfdSwapModule
impl !Sync for CfdSwapModule
impl Send for CfdSwapModule
impl Unpin for CfdSwapModule
impl UnsafeUnpin for CfdSwapModule
impl UnwindSafe for CfdSwapModule
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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