Struct wayland_client::wayland::ReadEventsGuard
[−]
[src]
pub struct ReadEventsGuard { // some fields omitted }
A guard over a read intention.
See WlDisplay::prepare_read()
for details about its use.
Methods
impl ReadEventsGuard
[src]
fn read_events(self) -> Result<i32>
Read events
Reads events from the server socket. If other ReadEventsGuard
exists, will block
until they are all destroyed.
fn cancel(self)
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.