#[repr(C)]pub struct MdSpiCallbacks {
pub user_data: *mut c_void,
pub on_front_connected: Option<extern "C" fn(*mut c_void)>,
pub on_front_disconnected: Option<extern "C" fn(*mut c_void, c_int)>,
pub on_heart_beat_warning: Option<extern "C" fn(*mut c_void, c_int)>,
pub on_rsp_user_login: Option<extern "C" fn(*mut c_void, *mut c_void, *mut c_void, c_int, c_int)>,
pub on_rsp_user_logout: Option<extern "C" fn(*mut c_void, *mut c_void, *mut c_void, c_int, c_int)>,
pub on_rsp_error: Option<extern "C" fn(*mut c_void, *mut c_void, c_int, c_int)>,
pub on_rsp_sub_market_data: Option<extern "C" fn(*mut c_void, *mut c_void, *mut c_void, c_int, c_int)>,
pub on_rsp_unsub_market_data: Option<extern "C" fn(*mut c_void, *mut c_void, *mut c_void, c_int, c_int)>,
pub on_rtn_depth_market_data: Option<extern "C" fn(*mut c_void, *mut c_void)>,
pub on_rtn_for_quote_rsp: Option<extern "C" fn(*mut c_void, *mut c_void)>,
}
Fields§
§user_data: *mut c_void
§on_front_connected: Option<extern "C" fn(*mut c_void)>
§on_front_disconnected: Option<extern "C" fn(*mut c_void, c_int)>
§on_heart_beat_warning: Option<extern "C" fn(*mut c_void, c_int)>
§on_rsp_user_login: Option<extern "C" fn(*mut c_void, *mut c_void, *mut c_void, c_int, c_int)>
§on_rsp_user_logout: Option<extern "C" fn(*mut c_void, *mut c_void, *mut c_void, c_int, c_int)>
§on_rsp_error: Option<extern "C" fn(*mut c_void, *mut c_void, c_int, c_int)>
§on_rsp_sub_market_data: Option<extern "C" fn(*mut c_void, *mut c_void, *mut c_void, c_int, c_int)>
§on_rsp_unsub_market_data: Option<extern "C" fn(*mut c_void, *mut c_void, *mut c_void, c_int, c_int)>
§on_rtn_depth_market_data: Option<extern "C" fn(*mut c_void, *mut c_void)>
§on_rtn_for_quote_rsp: Option<extern "C" fn(*mut c_void, *mut c_void)>
Auto Trait Implementations§
impl Freeze for MdSpiCallbacks
impl RefUnwindSafe for MdSpiCallbacks
impl !Send for MdSpiCallbacks
impl !Sync for MdSpiCallbacks
impl Unpin for MdSpiCallbacks
impl UnwindSafe for MdSpiCallbacks
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