PinWrite

Trait PinWrite 

Source
pub trait PinWrite: HalPin {
    // Provided method
    fn set_value(
        &self,
        value: <Self as HalPin>::Storage,
    ) -> Result<(), StorageError> { ... }
}
Expand description

Writable pin trait

Implemented for any pin that can be only written to by a component

Provided Methods§

Source

fn set_value( &self, value: <Self as HalPin>::Storage, ) -> Result<(), StorageError>

Set the value of the pin

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§