Struct wayland_client::EnvNotify [] [src]

pub struct EnvNotify<ID> {
    pub new_global: fn(_: &mut EventQueueHandle, _: &mut ID, _: &WlRegistry, _: u32, _: &str, _: u32),
    pub del_global: fn(_: &mut EventQueueHandle, _: &mut ID, _: &WlRegistry, _: u32),
    pub ready: fn(_: &mut EventQueueHandle, _: &mut ID, _: &WlRegistry),
}

An implementation to receive globals notifications for the EnvHandler

You can provide this implementation to have the EnvHandler notify you about new globals in addition to processing them.

See EnvHandler::init_with_notify(..).

Fields

A new global was advertized by the server

Arguments are:

  • The &mut EventQueueHandle
  • A mutable reference to the implementation data you provided
  • A handle to the wayland registry
  • the id of this new global
  • the interface of this global
  • the version of this global

A global was removed by the server

Arguments are:

  • The &mut EventQueueHandle
  • A mutable reference to the implementation data you provided
  • A handle to the wayland registry
  • the id of the removed global

The EnvHandler is ready

This is called once all necessary globals defined with the wayland_env!() macro were advertized and instanciated.

Arguments are:

  • The &mut EventQueueHandle
  • A mutable reference to the implementation data you provided
  • A handle to the wayland registry