Struct wayland_server::StateGuard [] [src]

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

Guard to access internal state of an event loop

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

It borrows the event loop, 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.