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§
Sourcefn foci(&self, app: &AppHandle) -> Vec<SettingsFocus>
fn foci(&self, app: &AppHandle) -> Vec<SettingsFocus>
The foci open now, the main one first: the first is edited when the one edited closes.
Sourcefn edit(&self, app: &AppHandle, focus: &str) -> Result<(), String>
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.