pub struct PluginTraceLevelOption;Expand description
Global default plugin boundary-trace verbosity. off / error / warn /
info (default) / debug / trace. info and below carry only
crash/lifecycle signal — no per-call traces (the keystroke hot path stays
free). Raise to debug to trace every host↔guest call; per-plugin
overrides live in the :plugins view (T).
Implementations§
Source§impl PluginTraceLevelOption
impl PluginTraceLevelOption
Sourcepub fn build_spec() -> Option<PluginTraceLevel>
pub fn build_spec() -> Option<PluginTraceLevel>
Build the runtime spec for this declaration.
Used by the registry’s self-registration boot
path; not generally called by hand. Direct
construction of Option<T> is the macro’s
internal-only path – consumer code uses
config.get_typed::<#name_ident>() to read
and config.set_typed::<#name_ident>(...) to
write.
Trait Implementations§
Source§impl HasGroup for PluginTraceLevelOption
impl HasGroup for PluginTraceLevelOption
Source§const GROUP_NAME: &'static str = <crate::Plugin as ::lattice_config::OptionGroup>::NAME
const GROUP_NAME: &'static str = <crate::Plugin as ::lattice_config::OptionGroup>::NAME
Group display name (
"editor", "lsp", …). The macro
pulls this from the group = SomeGroup; directive at the
declaration block’s head.Source§impl OptionDecl for PluginTraceLevelOption
impl OptionDecl for PluginTraceLevelOption
Source§const NAME: &'static str = PluginTraceLevelOption
const NAME: &'static str = PluginTraceLevelOption
Public display name. Boundary-facing only –
:set <NAME>=…,
TOML keys, completion candidates, :describe-option.
Internal access is type-driven. The macro derives this
from the option’s identifier (with namespace prefix when
declared via mode_options!); manually-typed NAMEs are
not supported for built-in options.Source§const DOC: &'static str = PluginTraceLevelOption
const DOC: &'static str = PluginTraceLevelOption
Doc string. Shown in
:describe-option, the :customize
form’s per-row help, and :apropos results.Source§const CUSTOMIZABLE: bool = true
const CUSTOMIZABLE: bool = true
Customize-visibility flag.
true (the default) ⇒ option
appears in :set autocomplete + the :customize group
view. false ⇒ plugin / engine-internal state, hidden
from user surfaces. Equivalent of emacs’s defvar vs
defcustom. (See mode-architecture.md §6.5.3.)Source§type Value = PluginTraceLevel
type Value = PluginTraceLevel
Source§fn default_value() -> Self::Value
fn default_value() -> Self::Value
Default value. Returned by a function (rather than a
const) so non-const-constructible types like String
can be defaults.Auto Trait Implementations§
impl Freeze for PluginTraceLevelOption
impl RefUnwindSafe for PluginTraceLevelOption
impl Send for PluginTraceLevelOption
impl Sync for PluginTraceLevelOption
impl Unpin for PluginTraceLevelOption
impl UnsafeUnpin for PluginTraceLevelOption
impl UnwindSafe for PluginTraceLevelOption
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