Trait wayland_client::internals::FFI [] [src]

pub trait FFI {
    type Ptr;
    fn ptr(&self) -> *const Self::Ptr;
    unsafe fn ptr_mut(&self) -> *mut Self::Ptr;
}

A trait for structures wrapping a FFI pointer, to access the pointer.

Normal use of the library does not require using this trait, it is only provided for special situations like EGL requiring the pointer to the wl_display, or implementing custom protocol extentions.

Associated Types

type Ptr

Required Methods

fn ptr(&self) -> *const Self::Ptr

Returns a *const pointer to the underlying wayland object.

unsafe fn ptr_mut(&self) -> *mut Self::Ptr

Returns a *mut pointer to the underlying wayland object.

Implementors