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]
impl ReadEventsGuard
pub fn read_events(self) -> IoResult<i32>
[src]
pub 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.
pub fn cancel(self)
[src]
pub 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.
Trait Implementations
impl Drop for ReadEventsGuard
[src]
impl Drop for ReadEventsGuard
Auto Trait Implementations
impl !Send for ReadEventsGuard
impl !Send for ReadEventsGuard
impl !Sync for ReadEventsGuard
impl !Sync for ReadEventsGuard