[−][src]Struct linuxcnc_hal::hal_pin::InputPin
Wrapping struct to specialise a HAL pin to an input
Methods
impl<P> InputPin<P> where
P: HalPin,
[src]
P: HalPin,
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,
P: RefUnwindSafe,
impl<P> Send for InputPin<P> where
P: Send,
P: Send,
impl<P> Sync for InputPin<P> where
P: Sync,
P: Sync,
impl<P> Unpin for InputPin<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for InputPin<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,