Skip to main content

PinRead

Trait PinRead 

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

Readable pin trait

Implemented for any pin that can only be read by a component

Provided Methods§

Source

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

Get the value of the pin

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§