Struct wayland_client::ReadEventsGuard [] [src]

pub struct ReadEventsGuard { /* fields omitted */ }

A guard over a read intention.

See EventQueue::prepare_read() for details about its use.

Methods

impl ReadEventsGuard
[src]

[src]

Read events

Reads events from the server socket. If other ReadEventsGuard exists, will block until they are all consumed or destroyed.

[src]

Cancel the read

Will cancel the read intention associated with this guard. Never blocks.

Has the same effet as letting the guard go out of scope.

Trait Implementations

impl Drop for ReadEventsGuard
[src]

[src]

Executes the destructor for this type. Read more