pub struct XlibClient<X: XlibRef> { /* private fields */ }Implementations§
Source§impl<X: XlibRef> XlibClient<X>
impl<X: XlibRef> XlibClient<X>
Sourcepub unsafe fn init(
x: X,
display: *mut Display,
im_name: Option<&str>,
) -> Result<Self, ClientError>
pub unsafe fn init( x: X, display: *mut Display, im_name: Option<&str>, ) -> Result<Self, ClientError>
Initialize a new XlibClient from an Xlib connection.
§Safety
The display pointer must be a valid Xlib display.
Sourcepub unsafe fn filter_event(
&mut self,
e: &XEvent,
handler: &mut impl ClientHandler<Self>,
) -> Result<bool, ClientError>
pub unsafe fn filter_event( &mut self, e: &XEvent, handler: &mut impl ClientHandler<Self>, ) -> Result<bool, ClientError>
Filter an event and call the handler if it is relevant.
§Safety
The event e must be a valid Xlib event.
Auto Trait Implementations§
impl<X> Freeze for XlibClient<X>where
X: Freeze,
impl<X> RefUnwindSafe for XlibClient<X>where
X: RefUnwindSafe,
impl<X> !Send for XlibClient<X>
impl<X> !Sync for XlibClient<X>
impl<X> Unpin for XlibClient<X>where
X: Unpin,
impl<X> UnwindSafe for XlibClient<X>where
X: UnwindSafe,
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