Skip to main content

SettingsFoci

Trait SettingsFoci 

Source
pub trait SettingsFoci:
    Send
    + Sync
    + 'static {
    // Required methods
    fn foci(&self, app: &AppHandle) -> Vec<SettingsFocus>;
    fn edit(&self, app: &AppHandle, focus: &str) -> Result<(), String>;
}
Expand description

The host’s foci, as the Settings ask for them.

Required Methods§

Source

fn foci(&self, app: &AppHandle) -> Vec<SettingsFocus>

The foci open now, the main one first: the first is edited when the one edited closes.

Source

fn edit(&self, app: &AppHandle, focus: &str) -> Result<(), String>

Makes the Settings edit a focus: the host attaches its store (Admin::attach_store) and offers its scopes (Admin::offer).

§Errors

The focus cannot be edited.

Implementors§