iced_runtime/platform_specific/
mod.rs

1//! Platform specific actions defined for wayland
2
3use std::fmt;
4
5#[cfg(feature = "wayland")]
6/// Platform specific actions defined for wayland
7pub mod wayland;
8
9/// Platform specific actions defined for wayland
10pub enum Action {
11    /// Wayland Specific Actions
12    #[cfg(feature = "wayland")]
13    Wayland(wayland::Action),
14}
15
16impl fmt::Debug for Action {
17    fn fmt(&self, _f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
18        match self {
19            #[cfg(feature = "wayland")]
20            Action::Wayland(action) => action.fmt(_f),
21            #[cfg(not(feature = "wayland"))]
22            _ => Ok(()),
23        }
24    }
25}