pub struct ModuleSet(/* private fields */);Expand description
A set of enabled modules.
Implementations§
Source§impl ModuleSet
impl ModuleSet
Sourcepub fn all() -> Self
pub fn all() -> Self
Every module enabled (what Shell::plugin installs).
Sourcepub fn state_only() -> Self
pub fn state_only() -> Self
Only the state-only set (Module::STATE), plus RevealOnReopen: reopen handling is
lifecycle, not state, and a state-only install has always revealed on reopen.
Sourcepub fn lifecycle_only() -> Self
pub fn lifecycle_only() -> Self
Everything except the five webview-policy modules: no hardening script or native hardening,
no navigation policy, no presence loop, no watchdog and no window-state restore or save.
ShowOnReady is also off (Module::LIFECYCLE_HOST_OPT_IN): the host owns its windows and
turns it on with ShellBuilder::show_on_ready(true) if it wants the shell to show the main
window. RevealOnReopen stays on; a host removes it with ShellBuilder::reveal_on_reopen(false).
Trait Implementations§
impl Copy for ModuleSet
impl Eq for ModuleSet
impl StructuralPartialEq for ModuleSet
Auto Trait Implementations§
impl Freeze for ModuleSet
impl RefUnwindSafe for ModuleSet
impl Send for ModuleSet
impl Sync for ModuleSet
impl Unpin for ModuleSet
impl UnsafeUnpin for ModuleSet
impl UnwindSafe for ModuleSet
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.