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§
Source§impl Debug for PinRegisterError
impl Debug for PinRegisterError
Source§impl Display for PinRegisterError
impl Display for PinRegisterError
Source§impl Error for PinRegisterError
impl Error for PinRegisterError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<PinRegisterError> for ResourcesError
impl From<PinRegisterError> for ResourcesError
Source§fn from(e: PinRegisterError) -> Self
fn from(e: PinRegisterError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PinRegisterError
impl PartialEq for PinRegisterError
impl StructuralPartialEq for PinRegisterError
Auto Trait Implementations§
impl Freeze for PinRegisterError
impl RefUnwindSafe for PinRegisterError
impl Send for PinRegisterError
impl Sync for PinRegisterError
impl Unpin for PinRegisterError
impl UnwindSafe for PinRegisterError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more