Type Alias mysqlclient_sys::NET

source ·
pub type NET = st_net;

Aliased Type§

struct NET {
Show 33 fields pub vio: *mut st_vio, pub buff: *mut u8, pub buff_end: *mut u8, pub write_pos: *mut u8, pub read_pos: *mut u8, pub fd: i32, pub remain_in_buf: u64, pub length: u64, pub buf_length: u64, pub where_b: u64, pub max_packet: u64, pub max_packet_size: u64, pub pkt_nr: u32, pub compress_pkt_nr: u32, pub write_timeout: u32, pub read_timeout: u32, pub retry_count: u32, pub fcntl: i32, pub return_status: *mut u32, pub reading_or_writing: u8, pub save_char: i8, pub unused1: i8, pub unused2: i8, pub compress: i8, pub unused3: i8, pub unused: *mut u8, pub last_errno: u32, pub error: u8, pub unused4: i8, pub unused5: i8, pub last_error: [i8; 512], pub sqlstate: [i8; 6], pub extension: *mut c_void,
}

Fields§

§vio: *mut st_vio§buff: *mut u8§buff_end: *mut u8§write_pos: *mut u8§read_pos: *mut u8§fd: i32§remain_in_buf: u64§length: u64§buf_length: u64§where_b: u64§max_packet: u64§max_packet_size: u64§pkt_nr: u32§compress_pkt_nr: u32§write_timeout: u32§read_timeout: u32§retry_count: u32§fcntl: i32§return_status: *mut u32§reading_or_writing: u8§save_char: i8§unused1: i8§unused2: i8§compress: i8§unused3: i8§unused: *mut u8§last_errno: u32§error: u8§unused4: i8§unused5: i8§last_error: [i8; 512]

Client library error message buffer. Actually belongs to struct MYSQL.

§sqlstate: [i8; 6]

Client library sqlstate buffer. Set along with the error message.

§extension: *mut c_void

Extension pointer, for the caller private use. Any program linking with the networking library can use this pointer, which is handy when private connection specific data needs to be maintained. The mysqld server process uses this pointer internally, to maintain the server internal instrumentation for the connection.