winit::platform_impl::linux::x11

Type Alias VoidCookie

Source
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>

Source

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.

Source

pub fn sequence_number(&self) -> u64

Get the sequence number of the request that generated this cookie.

Source

pub fn check(self) -> Result<(), ReplyError>

Check if the original request caused an X11 error.

Source

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.

Trait Implementations

Source§

impl<'a, C> Debug for VoidCookie<'a, C>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<C> Drop for VoidCookie<'_, C>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more