# _embedded_hal_digital_ToggleableOutputPin in k210_hal::prelude - Rust
Output pin that can be toggled
Keywords: rust, rustlang, rust-lang, _embedded_hal_digital_ToggleableOutputPin

# Trait k210_hal::prelude::_embedded_hal_digital_ToggleableOutputPin

source · [−]

    pub trait _embedded_hal_digital_ToggleableOutputPin {
        type Error;
        fn try_toggle(&mut self) -> Result<(), Self::Error>;
    }

Expand description

Output pin that can be toggled

See toggleable to use a software implementation if both OutputPin and StatefulOutputPin are implemented. Otherwise, implement this using hardware mechanisms.

## Associated Types

source

#### type Error

Error type

## Required methods

source

#### fn try_toggle(&mut self) -> Result<(), Self::Error>

Toggle pin output.

## Implementors

source

### impl<GPIO: GpioIndex, PIN> ToggleableOutputPin for Gpio<GPIO, PIN, Output>

#### type Error = Infallible

source

### impl<P> ToggleableOutputPin for P where
P: Default,

#### type Error = <P as OutputPin>::Error