Struct x11rb::cookie::Cookie[][src]

pub struct Cookie<'a, C: ?Sized, R> where
    C: RequestConnection + ?Sized
{ /* fields omitted */ }
Expand description

A handle to a response from the X11 server.

When sending a request to the X11 server, this library returns a Cookie. This Cookie can then later be used to get the response that the server sent.

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 RequestConnection::send_request_with_reply.

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

Get the raw reply that the server sent.

Get the raw reply that the server sent, but have errors handled as events.

Get the reply that the server sent.

Get the reply that the server sent, but have errors handled as events.

Discard all responses to the request this cookie represents, even errors.

Without this function, errors are treated as events after the cookie is dropped.

Trait Implementations

Formats the value using the given formatter. 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.