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.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.