pub fn with_reset(self,
                      hold_reset: Rc<dyn Fn(&mut DeviceInputs) -> Result<()>>,
                      release_reset: Rc<dyn Fn(&mut DeviceInputs) -> Result<()>>)
                      -> Self
    {
        let (hold_reset, release_reset) = (Some(hold_reset),
                                           Some(release_reset));

        Self {
            hold_reset,
            release_reset,
            ..self
        }
    }
/// Define reset functionality for the device.
Define reset functionality for the device.
Define reset functionality for the device .
pub fn with_reset(self,
                      hold_reset: Rc<dyn Fn(&mut DeviceInputs) -> Result<()>>,
                      release_reset: Rc<dyn Fn(&mut DeviceInputs) -> Result<()>>)
                      -> Self
    {
        let (hold_reset, release_reset) = (Some(hold_reset),
                                           Some(release_reset));
        Self {
            hold_reset,
            release_reset,
            ..self
        }
    }
pub fn with_reset ( self , hold_reset : Rc < dyn Fn ( & mut DeviceInputs ) -> Result < ( ) > > , release_reset : Rc < dyn Fn ( & mut DeviceInputs ) -> Result < ( ) > > ) -> Self { let ( hold_reset , release_reset ) = ( Some ( hold_reset ) , Some ( release_reset ) ) ; Self { hold_reset , release_reset , .. self } }
Define reset functionality for the device.
Define reset functionality for the device .
self
hold_reset
Rc<dyn Fn(&mut DeviceInputs) -> Result<()>>
release_reset
Rc<dyn Fn(&mut DeviceInputs) -> Result<()>>
self
hold_reset
Rc<dyn Fn(&mut DeviceInputs) -> Result<()>>
release_reset
Rc<dyn Fn(&mut DeviceInputs) -> Result<()>>