Struct follow_heating::io::IOBundle
source · pub struct IOBundle {
temperature_manager: Box<dyn TemperatureManager>,
heating_control: Dispatchable<Box<dyn HeatingControl>>,
misc_controls: Box<dyn MiscControls>,
wiser: Box<dyn WiserManager>,
active_devices: Box<dyn ActiveDevices>,
}
Fields§
§temperature_manager: Box<dyn TemperatureManager>
§heating_control: Dispatchable<Box<dyn HeatingControl>>
§misc_controls: Box<dyn MiscControls>
§wiser: Box<dyn WiserManager>
§active_devices: Box<dyn ActiveDevices>
Implementations§
source§impl IOBundle
impl IOBundle
pub fn new( temperature_manager: impl TemperatureManager + 'static, heating_control: impl HeatingControl + 'static, misc_controls: impl MiscControls + 'static, wiser: impl WiserManager + 'static, active_devices: impl ActiveDevices + 'static ) -> IOBundle
pub fn temperature_manager(&self) -> &dyn TemperatureManager
pub fn heating_control(&mut self) -> &mut Dispatchable<Box<dyn HeatingControl>>
pub fn dispatch_heating_control( &mut self ) -> Result<DispatchedRobbable<Box<dyn HeatingControl>>, ()>
pub fn misc_controls(&mut self) -> &mut dyn MiscControls
pub fn wiser(&self) -> &dyn WiserManager
pub fn active_devices(&mut self) -> &mut dyn ActiveDevices
Auto Trait Implementations§
impl !RefUnwindSafe for IOBundle
impl !Send for IOBundle
impl !Sync for IOBundle
impl Unpin for IOBundle
impl !UnwindSafe for IOBundle
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