Trait AbstractQvOpenApiClient
Source pub trait AbstractQvOpenApiClient {
Show 14 methods
// Required methods
fn get_handler(&self) -> Arc<QvOpenApiClientMessageHandler>;
fn get_hwnd(&self) -> Option<isize>;
fn set_hwnd(&self, new_hwnd: isize);
fn query(
&self,
tr_index: i32,
req: Arc<dyn QvOpenApiRequest>,
) -> Result<(), QvOpenApiError>;
// Provided methods
fn on_connect(&self, callback: Box<dyn FnMut(&ConnectResponse) + Send>) { ... }
fn on_disconnect(&self, callback: Box<dyn FnMut() + Send>) { ... }
fn on_socket_error(&self, callback: Box<dyn FnMut() + Send>) { ... }
fn on_data(&self, callback: Box<dyn FnMut(&DataResponse) + Send>) { ... }
fn on_sise(&self, callback: Box<dyn FnMut(&DataResponse) + Send>) { ... }
fn on_message(&self, callback: Box<dyn FnMut(&MessageResponse) + Send>) { ... }
fn on_complete(&self, callback: Box<dyn FnMut(i32) + Send>) { ... }
fn on_error(&self, callback: Box<dyn FnMut(&ErrorResponse) + Send>) { ... }
fn connect(
&self,
new_hwnd: isize,
account_type: AccountType,
id: &str,
password: &str,
cert_password: &str,
) -> Result<(), QvOpenApiError> { ... }
fn disconnect(&self) -> Result<(), QvOpenApiError> { ... }
}