Skip to main content

Module runner

Module runner 

Source
Expand description

Tokio-based channel senders for live trading runtime.

Stores channel senders for the current runtime thread.

Data and execution event setters accept either a runtime-bound EventSender or a plain Tokio sender. Plain senders carry no callback context. Getters and clones preserve the installed mode and owner; moving a runtime-bound sender to another thread makes its sends independent ingress.

Functionsยง

get_data_event_sender
Gets the thread-local data event sender.
get_exec_event_sender
Gets the thread-local execution event sender.
get_system_command_sender
Gets the thread-local system command sender.
get_system_event_sender
Gets the thread-local system event sender.
replace_data_event_sender
Replaces the data event sender for the current thread.
replace_exec_event_sender
Replaces the execution event sender for the current thread.
replace_system_command_sender
Replaces the system command sender for the current thread.
replace_system_event_sender
Replaces the system event sender for the current thread.
set_data_event_sender
Sets the thread-local data event sender.
set_exec_event_sender
Sets the thread-local execution event sender.
set_system_command_sender
Sets the thread-local system command sender.
set_system_event_sender
Sets the thread-local system event sender.
try_get_data_event_sender
Attempts to get the thread-local data event sender without panicking.
try_get_exec_event_sender
Attempts to get the thread-local execution event sender without panicking.
try_get_system_command_sender
Attempts to get the thread-local system command sender without panicking.
try_get_system_event_sender
Attempts to get the thread-local system event sender without panicking.