Skip to main content

HostExt

Trait HostExt 

Source
pub trait HostExt {
Show 17 methods // Required methods fn component<T: Component>(&self, name: &str); fn renderable<T: Renderable>(&self, name: &str); fn payload<T: Payload>(&self, command: &str); fn desktop_item<T: DesktopItem>(&self, name: &str); fn desktop_item_deployer<T: DeployableDesktopItem>(&self, name: &str); fn compositor<T: Compositor>(&self, name: &str); fn spotlight<T: Spotlight>(&self, name: &str); fn quick_settings<T: QuickSettings>(&self, name: &str); fn config_parser<T: Send + Sync + 'static>( &self, name: &str, parse: impl Fn(Option<&KdlNode>) -> T + Send + Sync + 'static, ); fn config_parser_try<T: Send + Sync + 'static>( &self, name: &str, parse: impl Fn(Option<&KdlNode>) -> Result<T, String> + Send + Sync + 'static, ); fn service<T: Service>(&self, name: &str); fn service_autostart<T: Service>(&self, name: &str); fn foreground_service<T: ForegroundService>(&self, name: &str); fn payload_parser<T: Clone + Send + Sync + 'static>( &self, commands: &[&str], parse: impl Fn(&str, &Args) -> Option<T> + Send + Sync + 'static, ); fn command(&self, name: &str, title: &str); fn command_with(&self, name: &str, title: &str, description: &str); fn style(&self, css: &str);
}

Required Methods§

Source

fn component<T: Component>(&self, name: &str)

Source

fn renderable<T: Renderable>(&self, name: &str)

Source

fn payload<T: Payload>(&self, command: &str)

Source

fn desktop_item<T: DesktopItem>(&self, name: &str)

Source

fn desktop_item_deployer<T: DeployableDesktopItem>(&self, name: &str)

Source

fn compositor<T: Compositor>(&self, name: &str)

Source

fn spotlight<T: Spotlight>(&self, name: &str)

Source

fn quick_settings<T: QuickSettings>(&self, name: &str)

Source

fn config_parser<T: Send + Sync + 'static>( &self, name: &str, parse: impl Fn(Option<&KdlNode>) -> T + Send + Sync + 'static, )

Source

fn config_parser_try<T: Send + Sync + 'static>( &self, name: &str, parse: impl Fn(Option<&KdlNode>) -> Result<T, String> + Send + Sync + 'static, )

Source

fn service<T: Service>(&self, name: &str)

Source

fn service_autostart<T: Service>(&self, name: &str)

Source

fn foreground_service<T: ForegroundService>(&self, name: &str)

Source

fn payload_parser<T: Clone + Send + Sync + 'static>( &self, commands: &[&str], parse: impl Fn(&str, &Args) -> Option<T> + Send + Sync + 'static, )

Source

fn command(&self, name: &str, title: &str)

Source

fn command_with(&self, name: &str, title: &str, description: &str)

Source

fn style(&self, css: &str)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§