Trait EventsLoopExt

Source
pub trait EventsLoopExt {
    // Required methods
    fn new_x11() -> Result<Self, XNotSupported>
       where Self: Sized;
    fn new_wayland() -> Self
       where Self: Sized;
    fn is_wayland(&self) -> bool;
    fn is_x11(&self) -> bool;
}
Expand description

Additional methods on EventsLoop that are specific to Linux.

Required Methods§

Source

fn new_x11() -> Result<Self, XNotSupported>
where Self: Sized,

Builds a new EventsLoop that is forced to use X11.

Source

fn new_wayland() -> Self
where Self: Sized,

Builds a new EventsLoop that is forced to use Wayland.

Source

fn is_wayland(&self) -> bool

True if the EventsLoop uses Wayland.

Source

fn is_x11(&self) -> bool

True if the EventsLoop uses X11.

Implementors§