[][src]Struct linuxcnc_hal::HalComponent

pub struct HalComponent { /* fields omitted */ }

HAL component

An initialised HAL component ready for use in the main component loop.

Use HalComponentBuilder::new to create a new component builder. Once all pins are registered, calling .ready() on the builder will convert it to a HalComponent ready for use in the main loop.

Methods

impl HalComponent[src]

pub fn id(&self) -> i32[src]

Get the HAL-assigned ID for this component

pub fn name(&self) -> &str[src]

Get the component name

pub fn should_exit(&self) -> bool[src]

Check whether the component was signalled to shut down

Trait Implementations

impl Debug for HalComponent[src]

impl Drop for HalComponent[src]

fn drop(&mut self)[src]

Clean up resources

Cleans up HAL resources by calling hal_exit as required by the docs.

Also deregisters signal handlers

Auto Trait Implementations

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.