pub enum ComponentInitError {
NameLength,
InvalidName,
Memory,
Signals(Error),
ResourceRegistration(ResourcesError),
Init,
Ready,
}
Expand description
HAL component initialisation error
Variants§
NameLength
Component name is too long
The maximum length is dictated by the HAL_NAME_LEN
constant
InvalidName
Component name could not be converted to C type
Memory
There is not enough free memory available to allocate storage for this pin
Signals(Error)
Failed to register signal handlers
ResourceRegistration(ResourcesError)
Resource (pin, signal, etc) registration failed
Init
An error occurred when initialising the component with
hal_init
Ready
An error occurred when calling hal_ready
on the component
Trait Implementations§
Source§impl Debug for ComponentInitError
impl Debug for ComponentInitError
Source§impl Display for ComponentInitError
impl Display for ComponentInitError
Source§impl Error for ComponentInitError
impl Error for ComponentInitError
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()
Auto Trait Implementations§
impl Freeze for ComponentInitError
impl !RefUnwindSafe for ComponentInitError
impl Send for ComponentInitError
impl Sync for ComponentInitError
impl Unpin for ComponentInitError
impl !UnwindSafe for ComponentInitError
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