#[repr(C)]pub struct _mbWebsocketHookCallbacks {
pub onWillConnect: Option<unsafe extern "stdcall" fn(webView: mbWebView, param: *mut c_void, channel: mbWebSocketChannel, url: *const utf8, needHook: *mut BOOL) -> mbStringPtr>,
pub onConnected: Option<unsafe extern "stdcall" fn(webView: mbWebView, param: *mut c_void, channel: mbWebSocketChannel) -> BOOL>,
pub onReceive: Option<unsafe extern "stdcall" fn(webView: mbWebView, param: *mut c_void, channel: mbWebSocketChannel, opCode: c_int, buf: *const c_char, len: usize, isContinue: *mut BOOL) -> mbStringPtr>,
pub onSend: Option<unsafe extern "stdcall" fn(webView: mbWebView, param: *mut c_void, channel: mbWebSocketChannel, opCode: c_int, buf: *const c_char, len: usize, isContinue: *mut BOOL) -> mbStringPtr>,
pub onError: Option<unsafe extern "stdcall" fn(webView: mbWebView, param: *mut c_void, channel: mbWebSocketChannel)>,
}Fields§
§onWillConnect: Option<unsafe extern "stdcall" fn(webView: mbWebView, param: *mut c_void, channel: mbWebSocketChannel, url: *const utf8, needHook: *mut BOOL) -> mbStringPtr>§onConnected: Option<unsafe extern "stdcall" fn(webView: mbWebView, param: *mut c_void, channel: mbWebSocketChannel) -> BOOL>§onReceive: Option<unsafe extern "stdcall" fn(webView: mbWebView, param: *mut c_void, channel: mbWebSocketChannel, opCode: c_int, buf: *const c_char, len: usize, isContinue: *mut BOOL) -> mbStringPtr>§onSend: Option<unsafe extern "stdcall" fn(webView: mbWebView, param: *mut c_void, channel: mbWebSocketChannel, opCode: c_int, buf: *const c_char, len: usize, isContinue: *mut BOOL) -> mbStringPtr>§onError: Option<unsafe extern "stdcall" fn(webView: mbWebView, param: *mut c_void, channel: mbWebSocketChannel)>Trait Implementations§
Source§impl Clone for _mbWebsocketHookCallbacks
impl Clone for _mbWebsocketHookCallbacks
Source§fn clone(&self) -> _mbWebsocketHookCallbacks
fn clone(&self) -> _mbWebsocketHookCallbacks
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for _mbWebsocketHookCallbacks
Auto Trait Implementations§
impl Freeze for _mbWebsocketHookCallbacks
impl RefUnwindSafe for _mbWebsocketHookCallbacks
impl Send for _mbWebsocketHookCallbacks
impl Sync for _mbWebsocketHookCallbacks
impl Unpin for _mbWebsocketHookCallbacks
impl UnwindSafe for _mbWebsocketHookCallbacks
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