pub struct AsyncRunnerChannels {
pub time_evt_rx: UnboundedReceiver<TimeEventHandlerV2>,
pub data_evt_rx: UnboundedReceiver<DataEvent>,
pub data_cmd_rx: UnboundedReceiver<DataCommand>,
pub exec_evt_rx: UnboundedReceiver<ExecutionEvent>,
pub exec_cmd_rx: UnboundedReceiver<TradingCommand>,
}Expand description
Channel receivers for the async event loop.
These can be extracted from AsyncRunner via take_channels() to drive
the event loop directly on the same thread as the msgbus endpoints.
Fields§
§time_evt_rx: UnboundedReceiver<TimeEventHandlerV2>§data_evt_rx: UnboundedReceiver<DataEvent>§data_cmd_rx: UnboundedReceiver<DataCommand>§exec_evt_rx: UnboundedReceiver<ExecutionEvent>§exec_cmd_rx: UnboundedReceiver<TradingCommand>Trait Implementations§
Auto Trait Implementations§
impl Freeze for AsyncRunnerChannels
impl RefUnwindSafe for AsyncRunnerChannels
impl Send for AsyncRunnerChannels
impl Sync for AsyncRunnerChannels
impl Unpin for AsyncRunnerChannels
impl UnwindSafe for AsyncRunnerChannels
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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