#[repr(C)]pub struct MYSQL_PLUGIN_VIO {
pub read_packet: Option<unsafe extern "C" fn(vio: *mut MYSQL_PLUGIN_VIO, buf: *mut *mut c_uchar) -> c_int>,
pub write_packet: Option<unsafe extern "C" fn(vio: *mut MYSQL_PLUGIN_VIO, packet: *const c_uchar, packet_len: c_int) -> c_int>,
pub info: Option<unsafe extern "C" fn(vio: *mut MYSQL_PLUGIN_VIO, info: *mut MYSQL_PLUGIN_VIO_INFO)>,
pub read_packet_nonblocking: Option<unsafe extern "C" fn(vio: *mut MYSQL_PLUGIN_VIO, buf: *mut *mut c_uchar, result: *mut c_int) -> net_async_status>,
pub write_packet_nonblocking: Option<unsafe extern "C" fn(vio: *mut MYSQL_PLUGIN_VIO, pkt: *const c_uchar, pkt_len: c_int, result: *mut c_int) -> net_async_status>,
}
Fields§
§read_packet: Option<unsafe extern "C" fn(vio: *mut MYSQL_PLUGIN_VIO, buf: *mut *mut c_uchar) -> c_int>
§write_packet: Option<unsafe extern "C" fn(vio: *mut MYSQL_PLUGIN_VIO, packet: *const c_uchar, packet_len: c_int) -> c_int>
§info: Option<unsafe extern "C" fn(vio: *mut MYSQL_PLUGIN_VIO, info: *mut MYSQL_PLUGIN_VIO_INFO)>
§read_packet_nonblocking: Option<unsafe extern "C" fn(vio: *mut MYSQL_PLUGIN_VIO, buf: *mut *mut c_uchar, result: *mut c_int) -> net_async_status>
§write_packet_nonblocking: Option<unsafe extern "C" fn(vio: *mut MYSQL_PLUGIN_VIO, pkt: *const c_uchar, pkt_len: c_int, result: *mut c_int) -> net_async_status>
Trait Implementations§
Source§impl Clone for MYSQL_PLUGIN_VIO
impl Clone for MYSQL_PLUGIN_VIO
Source§fn clone(&self) -> MYSQL_PLUGIN_VIO
fn clone(&self) -> MYSQL_PLUGIN_VIO
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 moreSource§impl Debug for MYSQL_PLUGIN_VIO
impl Debug for MYSQL_PLUGIN_VIO
impl Copy for MYSQL_PLUGIN_VIO
Auto Trait Implementations§
impl Freeze for MYSQL_PLUGIN_VIO
impl RefUnwindSafe for MYSQL_PLUGIN_VIO
impl Send for MYSQL_PLUGIN_VIO
impl Sync for MYSQL_PLUGIN_VIO
impl Unpin for MYSQL_PLUGIN_VIO
impl UnwindSafe for MYSQL_PLUGIN_VIO
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