Trait EventLoopWindowTargetExtWayland

Source
pub trait EventLoopWindowTargetExtWayland: EventLoopWindowTargetPrivate {
    // Required methods
    fn is_wayland(&self) -> bool;
    fn wayland_display(&self) -> Option<*mut c_void>;
}
Expand description

Additional methods on EventLoopWindowTarget that are specific to Wayland.

Required Methods§

Source

fn is_wayland(&self) -> bool

True if the EventLoopWindowTarget uses Wayland.

Source

fn wayland_display(&self) -> Option<*mut c_void>

Returns a pointer to the wl_display object of wayland that is used by this EventLoopWindowTarget.

Returns None if the EventLoop doesn’t use wayland (if it uses xlib for example).

The pointer will become invalid when the winit EventLoop is destroyed.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§