pub trait CtpApi {
// Required methods
fn get_version() -> CtpResult<String>;
fn init(&mut self) -> CtpResult<()>;
fn release(&mut self);
fn get_trading_day(&self) -> CtpResult<String>;
fn register_front(&mut self, front_address: &str) -> CtpResult<()>;
fn join(&self) -> CtpResult<i32>;
}
Required Methods§
fn get_version() -> CtpResult<String>
fn init(&mut self) -> CtpResult<()>
fn release(&mut self)
fn get_trading_day(&self) -> CtpResult<String>
fn register_front(&mut self, front_address: &str) -> CtpResult<()>
fn join(&self) -> CtpResult<i32>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.