Type Alias winit::platform::x11::XlibErrorHook

source ·
pub type XlibErrorHook = Box<dyn Fn(*mut c_void, *mut c_void) -> bool + Send + Sync>;
Expand description

The first argument in the provided hook will be the pointer to XDisplay and the second one the pointer to XErrorEvent. The returned bool is an indicator whether the error was handled by the callback.

Aliased Type§

struct XlibErrorHook(Unique<dyn Fn(*mut c_void, *mut c_void) -> bool + Sync + Send>, Global);

Fields§

§0: Unique<dyn Fn(*mut c_void, *mut c_void) -> bool + Sync + Send>§1: Global

Trait Implementations§

1.0.0 · source§

impl<T, A> Deref for Box<T, A>where A: Allocator, T: ?Sized,

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.