pub struct HardwareCtx {
pub hardware: DeviceStore,
pub dashboards: Arc<dyn DashboardFeed>,
}Expand description
Router state for the hardware HTTP surface: the device registry (DeviceStore)
- the
DashboardFeedthe TRMNL display render + per-device dashboard binding reach through. The feed inverts the old directryu_dashboardscoupling, so this surface has ZERO dependency on the dashboards crate (Core supplies an in-process or sidecar-backed impl).
Fields§
§hardware: DeviceStore§dashboards: Arc<dyn DashboardFeed>Trait Implementations§
Source§impl Clone for HardwareCtx
impl Clone for HardwareCtx
Source§fn clone(&self) -> HardwareCtx
fn clone(&self) -> HardwareCtx
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for HardwareCtx
impl !UnwindSafe for HardwareCtx
impl Freeze for HardwareCtx
impl Send for HardwareCtx
impl Sync for HardwareCtx
impl Unpin for HardwareCtx
impl UnsafeUnpin for HardwareCtx
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