Struct wayland_client::State [] [src]

pub struct State { /* fields omitted */ }

A state store

This struct allows you to store various values in a special storage that will be made available to your proxy implementations.

Methods

impl State
[src]

[src]

Insert a new value in this state store

Returns a clonable token that you can later use to access this value.

[src]

Access value previously inserted in this state store

Panics if the provided token corresponds to a value that was removed.

[src]

Mutably access value previously inserted in this state store

Panics if the provided token corresponds to a value that was removed.

[src]

Remove a value previously inserted in this state store

Panics if the provided token corresponds to a value that was already removed.