pub struct WasmDashboardSection { /* private fields */ }Expand description
A plugin-backed dashboard section.
Holds its own Store, instantiated once at load and kept for the editor’s
lifetime — see the module docs for why this cannot be data.
Implementations§
Source§impl WasmDashboardSection
impl WasmDashboardSection
Sourcepub fn plugin_name(&self) -> &str
pub fn plugin_name(&self) -> &str
The plugin this section came from — teardown removes by it.
Trait Implementations§
Source§impl DashboardSection for WasmDashboardSection
impl DashboardSection for WasmDashboardSection
Source§fn id(&self) -> &str
fn id(&self) -> &str
Stable identifier, used in
dashboard.sections and (CR.4) for plugin
replace-by-id. Lowercase kebab, e.g. "getting-started". Read moreSource§fn default_enabled(&self) -> bool
fn default_enabled(&self) -> bool
Whether this section shows when the user has not customised
dashboard.sections.Source§fn plugin_id(&self) -> Option<u64>
fn plugin_id(&self) -> Option<u64>
CR.2: the host-issued plugin id that contributed this section,
None for builtins. Provenance IS the teardown token —
[DashboardRegistry::unregister_plugin] removes by it. Read moreSource§fn render(&self, ctx: &DashboardCtx) -> DashboardFragment
fn render(&self, ctx: &DashboardCtx) -> DashboardFragment
Render this section’s contribution.
Auto Trait Implementations§
impl !Freeze for WasmDashboardSection
impl RefUnwindSafe for WasmDashboardSection
impl Send for WasmDashboardSection
impl Sync for WasmDashboardSection
impl Unpin for WasmDashboardSection
impl UnsafeUnpin for WasmDashboardSection
impl UnwindSafe for WasmDashboardSection
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more