Enum linuxcnc_hal::error::PinRegisterError
source · pub enum PinRegisterError {
NameLength,
NameConversion,
Storage(StorageError),
Invalid,
LockedHal,
Memory,
}
Expand description
Pin registration error
Variants
NameLength
Pin name is too long
The maximum length is dictated by the HAL_NAME_LEN
constant
NameConversion
Pin name could not be converted to C string
Storage(StorageError)
An error occurred allocating the HAL shared memory storage backing the pin
Invalid
An error occurred in the LinuxCNC HAL functions
This variant is often returned when a HAL function returns
EINVAL
. This error code is returned for various different
reasons. Check the LinuxCNC logs for error messages.
LockedHal
The HAL is locked
Resources cannot be registered after a component is created
Memory
There is not enough free memory available to allocate storage for this pin
Trait Implementations
sourceimpl Debug for PinRegisterError
impl Debug for PinRegisterError
sourceimpl Display for PinRegisterError
impl Display for PinRegisterError
sourceimpl Error for PinRegisterError
impl Error for PinRegisterError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<PinRegisterError> for ResourcesError
impl From<PinRegisterError> for ResourcesError
sourcefn from(e: PinRegisterError) -> Self
fn from(e: PinRegisterError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<PinRegisterError> for PinRegisterError
impl PartialEq<PinRegisterError> for PinRegisterError
sourcefn eq(&self, other: &PinRegisterError) -> bool
fn eq(&self, other: &PinRegisterError) -> bool
impl StructuralPartialEq for PinRegisterError
Auto Trait Implementations
impl RefUnwindSafe for PinRegisterError
impl Send for PinRegisterError
impl Sync for PinRegisterError
impl Unpin for PinRegisterError
impl UnwindSafe for PinRegisterError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more