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]

Read events

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

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]

A method called when the value goes out of scope. Read more