pub struct DashboardBrandingProvider { /* private fields */ }Expand description
A provider that emits the dashboard branding rows for one buffer.
Implementations§
Source§impl DashboardBrandingProvider
impl DashboardBrandingProvider
pub fn new( provider_id: ProviderId, theme: Option<ThemeRegistryHandle>, ids: DashboardElementIds, ) -> Self
Sourcepub fn provider_id_for(buffer_id: u64) -> ProviderId
pub fn provider_id_for(buffer_id: u64) -> ProviderId
Derive a stable per-buffer provider id.
Trait Implementations§
Source§impl Debug for DashboardBrandingProvider
impl Debug for DashboardBrandingProvider
Source§impl VirtualRowProvider for DashboardBrandingProvider
impl VirtualRowProvider for DashboardBrandingProvider
Source§fn id(&self) -> ProviderId
fn id(&self) -> ProviderId
A stable id for this provider. Used by the worker to
deduplicate registration + route mutation
notifications.
Source§fn version(&self) -> u64
fn version(&self) -> u64
Monotonic version counter — the provider bumps it
whenever the rows [
Self::collect] would emit have
changed. The worker uses the combined fingerprint of all
providers’ versions to short-circuit on the cache-hit
path without paying for the (potentially expensive)
collect calls. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for DashboardBrandingProvider
impl !UnwindSafe for DashboardBrandingProvider
impl Freeze for DashboardBrandingProvider
impl Send for DashboardBrandingProvider
impl Sync for DashboardBrandingProvider
impl Unpin for DashboardBrandingProvider
impl UnsafeUnpin for DashboardBrandingProvider
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