pub struct SimpleGlobal<I: Interface> { /* private fields */ }
Expand description

A minimalist global handler for “single” globals

This handler will simply register the global as soon as the registry signals it, and do nothing more.

It is appropriate for globals that never generate events, like wl_compositor or wl_data_device_manager.

Implementations

Create a new handler

Trait Implementations

Formats the value using the given formatter. Read more

This global was created and signaled in the registry with given id and version

Access the global if it was signaled

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.