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]
fn read_events(self) -> IoResult<i32>
Read events
Reads events from the server socket. If other ReadEventsGuard
exists, will block
until they are all consumed or 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.