Struct wayland_client::StateGuard [] [src]

pub struct StateGuard<'evq> { /* fields omitted */ }

Guard to access internal state of an event queue

This guard allows you to get references to the handlers you previously stored inside an event queue.

It borrows the event queue, so no event dispatching is possible as long as the guard is in scope, for safety reasons.

Methods

impl<'evq> StateGuard<'evq>
[src]

Get a reference to a handler

Provides a reference to a handler stored in this event loop.

The H type must be provided and match the type of the targetted Handler, or it will panic.

Get a mutable reference to a handler

Provides a reference to a handler stored in this event loop.

The H type must be provided and match the type of the targetted Handler, or it will panic.