Struct x11rb::cookie::VoidCookie [−][src]
pub struct VoidCookie<'a, C: ?Sized> where
C: RequestConnection + ?Sized, { /* fields omitted */ }
Expand description
A handle to a possible error from the X11 server.
When sending a request for which no reply is expected, this library returns a VoidCookie
.
This VoidCookie
can then later be used to check if the X11 server sent an error.
See crate::cookie for infos on the different ways to handle X11 errors in response to a request.
Implementations
Construct a new cookie.
This function should only be used by implementations of
Connection::send_request_without_reply
.
Get the sequence number of the request that generated this cookie.
Check if the original request caused an X11 error.
Ignore all errors to this request.
Without calling this method, an error becomes available on the connection as an event after this cookie was dropped. This function causes errors to be ignored instead.