pub fn disconnect_all(&mut self) -> Result<(), StackShieldError<ExpanderError<E>>> {
        for sw in &mut self.sw_target {
            sw.set_high()
                .map_err(|err| StackShieldError::BusSwitchError { source: err })?;
        }

        for sw in &mut self.sw_test_channel {
            sw.set_high()
                .map_err(|err| StackShieldError::BusSwitchError { source: err })?;
        }

        Ok(())
    }
/// Disconnects all the bus switches on the target stack shield.
///
/// # Error
/// In case this function returns an error, disconnecting all bus switches has failed. In that case the operation should be retried until it is successful before any other bus switches on other target stack shields are connected in order to avoid short circuits and undefined behavior.
Disconnects all the bus switches on the target stack shield.
Disconnects all the bus switches on the target stack shield .
pub fn disconnect_all(&mut self) -> Result<(), StackShieldError<ExpanderError<E>>> {
        for sw in &mut self.sw_target {
            sw.set_high()
                .map_err(|err| StackShieldError::BusSwitchError { source: err })?;
        }
        for sw in &mut self.sw_test_channel {
            sw.set_high()
                .map_err(|err| StackShieldError::BusSwitchError { source: err })?;
        }
        Ok(())
    }
pub fn disconnect_all ( & mut self ) -> Result < ( ) , StackShieldError < ExpanderError < E > > > { for sw in & mut self . sw_target { sw . set_high ( ) . map_err ( | err | StackShieldError :: BusSwitchError { source : err } ) ? ; } for sw in & mut self . sw_test_channel { sw . set_high ( ) . map_err ( | err | StackShieldError :: BusSwitchError { source : err } ) ? ; } Ok ( ( ) ) }
Disconnects all the bus switches on the target stack shield.
Disconnects all the bus switches on the target stack shield .
&mut self
error
In case this function returns an error, disconnecting all bus switches has failed. In that case the operation should be retried until it is successful before any other bus switches on other target stack shields are connected in order to avoid short circuits and undefined behavior.
In case this function returns an error disconnecting all bus switches has failed . In that case the operation should be retried until it is successful before any other bus switches on other target stack shields are connected in order to avoid short circuits and undefined behavior .