pub enum Module {
JsHardening,
NavigationPolicy,
WindowState,
ShowOnReady,
RevealOnReopen,
Watchdog,
Presence,
Broker,
Stream,
Recovery,
Frameless,
Clipboard,
}Expand description
A shell module that can be opted out. The comments say what each one controls.
Variants§
JsHardening
Injected DOM hardening script and native webview hardening (Hardening).
Navigation and popup policy (NavPolicy, the external-link handler).
WindowState
Window geometry restore and persistence.
ShowOnReady
Show the main window once its webview is ready.
RevealOnReopen
Reveal the main window on a macOS Dock reopen (RunEvent::Reopen) and when the OS hands the
app a URL or file (RunEvent::Opened). Off, neither shows, unminimises or focuses anything
(the URL is still delivered). On in every set except where a host removes it.
Watchdog
The hang watchdog and its rightkit-shell://stall event.
Presence
The presence loop (fullscreen and meeting detection).
Broker
Path-broker commands (rk_shell_path_*).
Stream
Ranged custom schemes: the stream scheme and the site-root scheme, with their grant commands.
Recovery
Crash-safe setup recovery commands.
Frameless
Frameless chrome for windows opened through the shell, and traffic-light offsets.
Clipboard
Clipboard commands, including the typed rk_shell_clipboard_item.
Implementations§
Source§impl Module
impl Module
Sourcepub const LIFECYCLE_OFF: [Module; 5]
pub const LIFECYCLE_OFF: [Module; 5]
The modules lifecycle_only turns off.
Sourcepub const LIFECYCLE_HOST_OPT_IN: [Module; 1]
pub const LIFECYCLE_HOST_OPT_IN: [Module; 1]
Modules lifecycle_only leaves off by default because a lifecycle-only host owns its own
windows: the host turns one back on explicitly (ShellBuilder::show_on_ready(true)).
Trait Implementations§
impl Copy for Module
impl Eq for Module
Source§impl Ord for Module
impl Ord for Module
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Module
impl PartialOrd for Module
impl StructuralPartialEq for Module
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnsafeUnpin for Module
impl UnwindSafe for Module
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.