pub struct RuViewToHapMapper;Expand description
Maps EdgeVitals to a Vec<AccessoryMapping> — one per RuView primitive
that should be exposed as a distinct HAP service (child accessory).
Implementations§
Source§impl RuViewToHapMapper
impl RuViewToHapMapper
Sourcepub fn map(vitals: &EdgeVitals) -> Vec<AccessoryMapping>
pub fn map(vitals: &EdgeVitals) -> Vec<AccessoryMapping>
Convert a EdgeVitals snapshot to HAP accessory mappings.
Always returns mappings for presence, motion, and fall; the ambient
temperature mapping is only emitted when ambient_temp_c is Some.
Auto Trait Implementations§
impl Freeze for RuViewToHapMapper
impl RefUnwindSafe for RuViewToHapMapper
impl Send for RuViewToHapMapper
impl Sync for RuViewToHapMapper
impl Unpin for RuViewToHapMapper
impl UnsafeUnpin for RuViewToHapMapper
impl UnwindSafe for RuViewToHapMapper
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