Struct x11rb::xcb_ffi::raw_ffi::ffi::LibxcbFuncs

source ·
struct LibxcbFuncs {
Show 17 fields xcb_flush: unsafe extern "C" fn(c: *mut xcb_connection_t) -> c_int, xcb_get_maximum_request_length: unsafe extern "C" fn(c: *mut xcb_connection_t) -> u32, xcb_prefetch_maximum_request_length: unsafe extern "C" fn(c: *mut xcb_connection_t), xcb_wait_for_event: unsafe extern "C" fn(c: *mut xcb_connection_t) -> *mut xcb_generic_event_t, xcb_poll_for_event: unsafe extern "C" fn(c: *mut xcb_connection_t) -> *mut xcb_generic_event_t, xcb_request_check: unsafe extern "C" fn(c: *mut xcb_connection_t, void_cookie: xcb_void_cookie_t) -> *mut xcb_generic_error_t, xcb_discard_reply64: unsafe extern "C" fn(c: *mut xcb_connection_t, sequence: u64), xcb_get_setup: unsafe extern "C" fn(c: *mut xcb_connection_t) -> *const xcb_setup_t, xcb_get_file_descriptor: unsafe extern "C" fn(c: *mut xcb_connection_t) -> c_int, xcb_connection_has_error: unsafe extern "C" fn(c: *mut xcb_connection_t) -> c_int, xcb_disconnect: unsafe extern "C" fn(c: *mut xcb_connection_t), xcb_connect: unsafe extern "C" fn(displayname: *const c_char, screenp: *mut c_int) -> *mut xcb_connection_t, xcb_generate_id: unsafe extern "C" fn(c: *mut xcb_connection_t) -> u32, xcb_send_request64: unsafe extern "C" fn(c: *mut xcb_connection_t, flags: c_int, vector: *mut iovec, request: *const xcb_protocol_request_t) -> u64, xcb_send_request_with_fds64: unsafe extern "C" fn(c: *mut xcb_connection_t, flags: c_int, vector: *mut iovec, request: *const xcb_protocol_request_t, num_fds: c_uint, fds: *mut c_int) -> u64, xcb_wait_for_reply64: unsafe extern "C" fn(c: *mut xcb_connection_t, request: u64, e: *mut *mut xcb_generic_error_t) -> *mut c_void, xcb_poll_for_reply64: unsafe extern "C" fn(c: *mut xcb_connection_t, request: u64, reply: *mut *mut c_void, error: *mut *mut xcb_generic_error_t) -> c_int,
}

Fields§

§xcb_flush: unsafe extern "C" fn(c: *mut xcb_connection_t) -> c_int§xcb_get_maximum_request_length: unsafe extern "C" fn(c: *mut xcb_connection_t) -> u32§xcb_prefetch_maximum_request_length: unsafe extern "C" fn(c: *mut xcb_connection_t)§xcb_wait_for_event: unsafe extern "C" fn(c: *mut xcb_connection_t) -> *mut xcb_generic_event_t§xcb_poll_for_event: unsafe extern "C" fn(c: *mut xcb_connection_t) -> *mut xcb_generic_event_t§xcb_request_check: unsafe extern "C" fn(c: *mut xcb_connection_t, void_cookie: xcb_void_cookie_t) -> *mut xcb_generic_error_t§xcb_discard_reply64: unsafe extern "C" fn(c: *mut xcb_connection_t, sequence: u64)§xcb_get_setup: unsafe extern "C" fn(c: *mut xcb_connection_t) -> *const xcb_setup_t§xcb_get_file_descriptor: unsafe extern "C" fn(c: *mut xcb_connection_t) -> c_int§xcb_connection_has_error: unsafe extern "C" fn(c: *mut xcb_connection_t) -> c_int§xcb_disconnect: unsafe extern "C" fn(c: *mut xcb_connection_t)§xcb_connect: unsafe extern "C" fn(displayname: *const c_char, screenp: *mut c_int) -> *mut xcb_connection_t§xcb_generate_id: unsafe extern "C" fn(c: *mut xcb_connection_t) -> u32§xcb_send_request64: unsafe extern "C" fn(c: *mut xcb_connection_t, flags: c_int, vector: *mut iovec, request: *const xcb_protocol_request_t) -> u64§xcb_send_request_with_fds64: unsafe extern "C" fn(c: *mut xcb_connection_t, flags: c_int, vector: *mut iovec, request: *const xcb_protocol_request_t, num_fds: c_uint, fds: *mut c_int) -> u64§xcb_wait_for_reply64: unsafe extern "C" fn(c: *mut xcb_connection_t, request: u64, e: *mut *mut xcb_generic_error_t) -> *mut c_void§xcb_poll_for_reply64: unsafe extern "C" fn(c: *mut xcb_connection_t, request: u64, reply: *mut *mut c_void, error: *mut *mut xcb_generic_error_t) -> c_int

Implementations§

source§

impl LibxcbFuncs

source

unsafe fn new(library: &Library) -> Result<Self, (&'static [u8], Error)>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.