[][src]Struct linuxcnc_hal::hal_pin::OutputPin

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

Wrapping struct to specialise a HAL pin to an output

Methods

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

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

Register a new output pin with the HAL

Requires the full pin name including component like vfd.spindle-speed-out or jog-pendant.is-estopped. The component ID should be fetched from [HalComponentBuilder.id].

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

Set the pin's value

Auto Trait Implementations

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

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

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

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

impl<P> UnwindSafe for OutputPin<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.