Skip to main content

StartupMessageCallback

Type Alias StartupMessageCallback 

Source
pub type StartupMessageCallback = Box<dyn Fn(ResponseMessage) + Send + Sync>;
Expand description

Callback for handling unsolicited messages during connection setup.

When TWS sends messages like OpenOrder or OrderStatus during the connection handshake, this callback is invoked to allow the application to process them instead of discarding them.

Aliased Typeยง

pub struct StartupMessageCallback(/* private fields */);