Skip to main content

EngineTraitOf

Struct EngineTraitOf 

Source
pub struct EngineTraitOf<Order, ExecutionReport, AccountAdjustment, Sync>(/* private fields */);
Expand description

Concrete EngineTrait implementation composed from the four individual type choices.

The engine builder chain produces this type at build() time so that the resulting Engine value has a single, fully-determined EngineTrait parameter.

Trait Implementations§

Source§

impl<Order, ExecutionReport, AccountAdjustment, Sync> EngineTrait for EngineTraitOf<Order, ExecutionReport, AccountAdjustment, Sync>
where Order: 'static, ExecutionReport: 'static, AccountAdjustment: 'static, Sync: SyncMode,

Source§

type Order = Order

Order contract type used by start_pre_trade.
Source§

type ExecutionReport = ExecutionReport

Execution-report contract type used by apply_execution_report.
Source§

type AccountAdjustment = AccountAdjustment

Account-adjustment contract type used by apply_account_adjustment.
Source§

type Sync = Sync

Synchronization mode (see SyncMode).

Auto Trait Implementations§

§

impl<Order, ExecutionReport, AccountAdjustment, Sync> Freeze for EngineTraitOf<Order, ExecutionReport, AccountAdjustment, Sync>

§

impl<Order, ExecutionReport, AccountAdjustment, Sync> RefUnwindSafe for EngineTraitOf<Order, ExecutionReport, AccountAdjustment, Sync>
where Order: RefUnwindSafe, ExecutionReport: RefUnwindSafe, AccountAdjustment: RefUnwindSafe, Sync: RefUnwindSafe,

§

impl<Order, ExecutionReport, AccountAdjustment, Sync> Send for EngineTraitOf<Order, ExecutionReport, AccountAdjustment, Sync>
where Order: Send, ExecutionReport: Send, AccountAdjustment: Send, Sync: Send,

§

impl<Order, ExecutionReport, AccountAdjustment, Sync> Sync for EngineTraitOf<Order, ExecutionReport, AccountAdjustment, Sync>
where Order: Sync, ExecutionReport: Sync, AccountAdjustment: Sync, Sync: Sync,

§

impl<Order, ExecutionReport, AccountAdjustment, Sync> Unpin for EngineTraitOf<Order, ExecutionReport, AccountAdjustment, Sync>
where Order: Unpin, ExecutionReport: Unpin, AccountAdjustment: Unpin, Sync: Unpin,

§

impl<Order, ExecutionReport, AccountAdjustment, Sync> UnsafeUnpin for EngineTraitOf<Order, ExecutionReport, AccountAdjustment, Sync>

§

impl<Order, ExecutionReport, AccountAdjustment, Sync> UnwindSafe for EngineTraitOf<Order, ExecutionReport, AccountAdjustment, Sync>
where Order: UnwindSafe, ExecutionReport: UnwindSafe, AccountAdjustment: UnwindSafe, Sync: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.