[][src]Struct linuxcnc_hal::hal_pin::InputPin

pub struct InputPin<P> { /* fields omitted */ }

Wrapping struct to specialise a HAL pin to an input

Methods

impl<P> InputPin<P> where
    P: HalPin
[src]

pub fn new(name: String, component_id: i32) -> Result<Self, PinRegisterError>[src]

Register a new input pin with the HAL

Requires the full pin name including component like vfd.speed-in or jog-pendant.enabled. The component ID should be fetched from [HalComponent.id].

pub fn value(&self) -> Result<&P::Storage, StorageError>[src]

Get a reference to this pin's value

Auto Trait Implementations

impl<P> RefUnwindSafe for InputPin<P> where
    P: RefUnwindSafe

impl<P> Send for InputPin<P> where
    P: Send

impl<P> Sync for InputPin<P> where
    P: Sync

impl<P> Unpin for InputPin<P> where
    P: Unpin

impl<P> UnwindSafe for InputPin<P> where
    P: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.