Skip to main content

Module modules

Module modules 

Source
Expand description

Modular install: opt individual shell modules out, or install only the state the broker, stream, recovery, frameless and clipboard commands need.

let plugin = rightkit_tauri_shell::ShellPlugin::builder()
    .shell(rightkit_tauri_shell::Shell::builder("viewright").app_name("ViewRight").build())
    .without(Module::Presence)
    .without(Module::Watchdog)
    .build();

// Or: broker, stream, recovery, frameless and clipboard only, with no hardening, navigation
// policy, window restore, show-on-ready, watchdog or presence.
let plugin = rightkit_tauri_shell::ShellPlugin::builder()
    .shell(rightkit_tauri_shell::Shell::builder("viewright").build())
    .install_state_only();

An opted-out command family answers unsupported (“module … is disabled for this app”) rather than doing nothing, so a renderer never mistakes a disabled module for a silent success.

The path broker needs no plugin at all: crate::broker::PathBroker is a plain Default library type. Create one in your own state, grant files with it, and call its require_*, grant_stream, grant_site_root and recovery helpers from your own commands. Only the plugin’s command wiring is optional.

Structs§

ModuleSet
A set of enabled modules.
ShellPlugin
Entry point for a modular install. See the module docs for examples.
ShellPluginBuilder
Builder returned by ShellPlugin::builder.

Enums§

Module
A shell module that can be opted out. The comments say what each one controls.