pub trait MonoGlobal: Sized {
    type Object;

    const INTERFACE: &'static str;
    const VERSION: u32;
    const MAYBE_DEFAULT: Option<Self>;

    // Required method
    fn new_object() -> Self::Object;
}
Expand description

A monomorphic global

i.e. a global with a concrete type. This is analogous to the MonoObject trait for objects.

Required Associated Types§

source

type Object

Type of the proxy object for this global.

Required Associated Constants§

source

const INTERFACE: &'static str

The interface name of this global.

source

const VERSION: u32

The version number of this global.

source

const MAYBE_DEFAULT: Option<Self>

A value that can be used to create an instance of Self. Or None if there is no compile time default value.

Required Methods§

source

fn new_object() -> Self::Object

Create a new proxy object of this global.

Implementors§

source§

impl MonoGlobal for Display

§

type Object = Display

source§

const INTERFACE: &'static str = wl_display::v1::NAME

source§

const MAYBE_DEFAULT: Option<Self> = _

source§

const VERSION: u32 = 1u32

source§

impl MonoGlobal for Registry

§

type Object = Registry

source§

const INTERFACE: &'static str = wl_registry::NAME

source§

const MAYBE_DEFAULT: Option<Self> = _

source§

const VERSION: u32 = 1u32