pub enum ActionOutput<ExchangeKey = ExchangeIndex, InstrumentKey = InstrumentIndex> {
GenerateAlgoOrders(GenerateAlgoOrdersOutput<ExchangeKey, InstrumentKey>),
CancelOrders(SendRequestsOutput<RequestCancel, ExchangeKey, InstrumentKey>),
OpenOrders(SendRequestsOutput<RequestOpen, ExchangeKey, InstrumentKey>),
ClosePositions(SendCancelsAndOpensOutput<ExchangeKey, InstrumentKey>),
}Expand description
Output of the Engine after actioning a Command.
Variants§
GenerateAlgoOrders(GenerateAlgoOrdersOutput<ExchangeKey, InstrumentKey>)
CancelOrders(SendRequestsOutput<RequestCancel, ExchangeKey, InstrumentKey>)
OpenOrders(SendRequestsOutput<RequestOpen, ExchangeKey, InstrumentKey>)
ClosePositions(SendCancelsAndOpensOutput<ExchangeKey, InstrumentKey>)
Implementations§
Source§impl<ExchangeKey, InstrumentKey> ActionOutput<ExchangeKey, InstrumentKey>
impl<ExchangeKey, InstrumentKey> ActionOutput<ExchangeKey, InstrumentKey>
Sourcepub fn unrecoverable_errors(
&self,
) -> Option<OneOrMany<UnrecoverableEngineError>>
pub fn unrecoverable_errors( &self, ) -> Option<OneOrMany<UnrecoverableEngineError>>
Returns any unrecoverable errors that occurred during an Engine action.
Trait Implementations§
Source§impl<ExchangeKey: Clone, InstrumentKey: Clone> Clone for ActionOutput<ExchangeKey, InstrumentKey>
impl<ExchangeKey: Clone, InstrumentKey: Clone> Clone for ActionOutput<ExchangeKey, InstrumentKey>
Source§fn clone(&self) -> ActionOutput<ExchangeKey, InstrumentKey>
fn clone(&self) -> ActionOutput<ExchangeKey, InstrumentKey>
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<ExchangeKey: Debug, InstrumentKey: Debug> Debug for ActionOutput<ExchangeKey, InstrumentKey>
impl<ExchangeKey: Debug, InstrumentKey: Debug> Debug for ActionOutput<ExchangeKey, InstrumentKey>
Source§impl<'de, ExchangeKey, InstrumentKey> Deserialize<'de> for ActionOutput<ExchangeKey, InstrumentKey>where
ExchangeKey: Deserialize<'de>,
InstrumentKey: Deserialize<'de>,
impl<'de, ExchangeKey, InstrumentKey> Deserialize<'de> for ActionOutput<ExchangeKey, InstrumentKey>where
ExchangeKey: Deserialize<'de>,
InstrumentKey: Deserialize<'de>,
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<ExchangeKey: Eq, InstrumentKey: Eq> Eq for ActionOutput<ExchangeKey, InstrumentKey>
Source§impl<OnTradingDisabled, OnDisconnect, ExchangeKey, InstrumentKey> From<ActionOutput<ExchangeKey, InstrumentKey>> for EngineOutput<OnTradingDisabled, OnDisconnect, ExchangeKey, InstrumentKey>
impl<OnTradingDisabled, OnDisconnect, ExchangeKey, InstrumentKey> From<ActionOutput<ExchangeKey, InstrumentKey>> for EngineOutput<OnTradingDisabled, OnDisconnect, ExchangeKey, InstrumentKey>
Source§fn from(value: ActionOutput<ExchangeKey, InstrumentKey>) -> Self
fn from(value: ActionOutput<ExchangeKey, InstrumentKey>) -> Self
Converts to this type from the input type.
Source§impl<ExchangeKey, InstrumentKey> From<GenerateAlgoOrdersOutput<ExchangeKey, InstrumentKey>> for ActionOutput<ExchangeKey, InstrumentKey>
impl<ExchangeKey, InstrumentKey> From<GenerateAlgoOrdersOutput<ExchangeKey, InstrumentKey>> for ActionOutput<ExchangeKey, InstrumentKey>
Source§fn from(value: GenerateAlgoOrdersOutput<ExchangeKey, InstrumentKey>) -> Self
fn from(value: GenerateAlgoOrdersOutput<ExchangeKey, InstrumentKey>) -> Self
Converts to this type from the input type.
Source§impl<ExchangeKey, InstrumentKey> From<SendCancelsAndOpensOutput<ExchangeKey, InstrumentKey>> for ActionOutput<ExchangeKey, InstrumentKey>
impl<ExchangeKey, InstrumentKey> From<SendCancelsAndOpensOutput<ExchangeKey, InstrumentKey>> for ActionOutput<ExchangeKey, InstrumentKey>
Source§fn from(value: SendCancelsAndOpensOutput<ExchangeKey, InstrumentKey>) -> Self
fn from(value: SendCancelsAndOpensOutput<ExchangeKey, InstrumentKey>) -> Self
Converts to this type from the input type.
Source§impl<ExchangeKey, InstrumentKey> From<SendRequestsOutput<RequestCancel, ExchangeKey, InstrumentKey>> for ActionOutput<ExchangeKey, InstrumentKey>
impl<ExchangeKey, InstrumentKey> From<SendRequestsOutput<RequestCancel, ExchangeKey, InstrumentKey>> for ActionOutput<ExchangeKey, InstrumentKey>
Source§fn from(
value: SendRequestsOutput<RequestCancel, ExchangeKey, InstrumentKey>,
) -> Self
fn from( value: SendRequestsOutput<RequestCancel, ExchangeKey, InstrumentKey>, ) -> Self
Converts to this type from the input type.
Source§impl<ExchangeKey, InstrumentKey> From<SendRequestsOutput<RequestOpen, ExchangeKey, InstrumentKey>> for ActionOutput<ExchangeKey, InstrumentKey>
impl<ExchangeKey, InstrumentKey> From<SendRequestsOutput<RequestOpen, ExchangeKey, InstrumentKey>> for ActionOutput<ExchangeKey, InstrumentKey>
Source§fn from(
value: SendRequestsOutput<RequestOpen, ExchangeKey, InstrumentKey>,
) -> Self
fn from( value: SendRequestsOutput<RequestOpen, ExchangeKey, InstrumentKey>, ) -> Self
Converts to this type from the input type.
Source§impl<ExchangeKey: Hash, InstrumentKey: Hash> Hash for ActionOutput<ExchangeKey, InstrumentKey>
impl<ExchangeKey: Hash, InstrumentKey: Hash> Hash for ActionOutput<ExchangeKey, InstrumentKey>
Source§impl<ExchangeKey: Ord, InstrumentKey: Ord> Ord for ActionOutput<ExchangeKey, InstrumentKey>
impl<ExchangeKey: Ord, InstrumentKey: Ord> Ord for ActionOutput<ExchangeKey, InstrumentKey>
Source§fn cmp(&self, other: &ActionOutput<ExchangeKey, InstrumentKey>) -> Ordering
fn cmp(&self, other: &ActionOutput<ExchangeKey, InstrumentKey>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<ExchangeKey: PartialEq, InstrumentKey: PartialEq> PartialEq for ActionOutput<ExchangeKey, InstrumentKey>
impl<ExchangeKey: PartialEq, InstrumentKey: PartialEq> PartialEq for ActionOutput<ExchangeKey, InstrumentKey>
Source§fn eq(&self, other: &ActionOutput<ExchangeKey, InstrumentKey>) -> bool
fn eq(&self, other: &ActionOutput<ExchangeKey, InstrumentKey>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<ExchangeKey: PartialOrd, InstrumentKey: PartialOrd> PartialOrd for ActionOutput<ExchangeKey, InstrumentKey>
impl<ExchangeKey: PartialOrd, InstrumentKey: PartialOrd> PartialOrd for ActionOutput<ExchangeKey, InstrumentKey>
Source§impl<ExchangeKey, InstrumentKey> Serialize for ActionOutput<ExchangeKey, InstrumentKey>
impl<ExchangeKey, InstrumentKey> Serialize for ActionOutput<ExchangeKey, InstrumentKey>
impl<ExchangeKey: PartialEq, InstrumentKey: PartialEq> StructuralPartialEq for ActionOutput<ExchangeKey, InstrumentKey>
Auto Trait Implementations§
impl<ExchangeKey, InstrumentKey> Freeze for ActionOutput<ExchangeKey, InstrumentKey>
impl<ExchangeKey, InstrumentKey> RefUnwindSafe for ActionOutput<ExchangeKey, InstrumentKey>where
ExchangeKey: RefUnwindSafe,
InstrumentKey: RefUnwindSafe,
impl<ExchangeKey, InstrumentKey> Send for ActionOutput<ExchangeKey, InstrumentKey>
impl<ExchangeKey, InstrumentKey> Sync for ActionOutput<ExchangeKey, InstrumentKey>
impl<ExchangeKey, InstrumentKey> Unpin for ActionOutput<ExchangeKey, InstrumentKey>
impl<ExchangeKey, InstrumentKey> UnsafeUnpin for ActionOutput<ExchangeKey, InstrumentKey>where
ExchangeKey: UnsafeUnpin,
InstrumentKey: UnsafeUnpin,
impl<ExchangeKey, InstrumentKey> UnwindSafe for ActionOutput<ExchangeKey, InstrumentKey>where
ExchangeKey: UnwindSafe,
InstrumentKey: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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