type VoidCookie<'a> = VoidCookie<'a, XCBConnection>;
Expand description
Type alias for a void cookie.
Aliased Type§
struct VoidCookie<'a> { /* private fields */ }
Implementations
Source§impl<'a, C> VoidCookie<'a, C>where
C: RequestConnection + ?Sized,
impl<'a, C> VoidCookie<'a, C>where
C: RequestConnection + ?Sized,
Sourcepub fn new(connection: &C, sequence_number: u64) -> VoidCookie<'_, C>
pub fn new(connection: &C, sequence_number: u64) -> VoidCookie<'_, C>
Construct a new cookie.
This function should only be used by implementations of
Connection::send_request_without_reply
.
Sourcepub fn sequence_number(&self) -> u64
pub fn sequence_number(&self) -> u64
Get the sequence number of the request that generated this cookie.
Sourcepub fn check(self) -> Result<(), ReplyError>
pub fn check(self) -> Result<(), ReplyError>
Check if the original request caused an X11 error.
Sourcepub fn ignore_error(self)
pub fn ignore_error(self)
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.