pub enum ParameterRegisterError {
NameLength,
NameConversion,
Storage(StorageError),
Invalid,
LockedHal,
Memory,
}Expand description
Parameter registration error
Variants§
NameLength
Parameter name is too long
The maximum length is dictated by the HAL_NAME_LEN constant
NameConversion
Parameter name could not be converted to C string
Storage(StorageError)
An error occurred allocating the HAL shared memory storage backing the parameter
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 parameter
Trait Implementations§
Source§impl Debug for ParameterRegisterError
impl Debug for ParameterRegisterError
Source§impl Display for ParameterRegisterError
impl Display for ParameterRegisterError
Source§impl Error for ParameterRegisterError
impl Error for ParameterRegisterError
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<ParameterRegisterError> for ResourcesError
impl From<ParameterRegisterError> for ResourcesError
Source§fn from(e: ParameterRegisterError) -> Self
fn from(e: ParameterRegisterError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParameterRegisterError
impl PartialEq for ParameterRegisterError
impl StructuralPartialEq for ParameterRegisterError
Auto Trait Implementations§
impl Freeze for ParameterRegisterError
impl RefUnwindSafe for ParameterRegisterError
impl Send for ParameterRegisterError
impl Sync for ParameterRegisterError
impl Unpin for ParameterRegisterError
impl UnwindSafe for ParameterRegisterError
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