iced::daemon

Trait Title

Source
pub trait Title<State> {
    // Required method
    fn title(&self, state: &State, window: Id) -> String;
}
Expand description

The title logic of some Daemon.

This trait is implemented both for &static str and any closure Fn(&State, window::Id) -> String.

This trait allows the daemon builder to take any of them.

Required Methods§

Source

fn title(&self, state: &State, window: Id) -> String

Produces the title of the Daemon.

Implementations on Foreign Types§

Source§

impl<State> Title<State> for &'static str

Source§

fn title(&self, _state: &State, _window: Id) -> String

Implementors§

Source§

impl<T, State> Title<State> for T
where T: Fn(&State, Id) -> String,