pub enum ResourcesError {
Pin(PinRegisterError),
Parameter(ParameterRegisterError),
}
Expand description
Resources registration error
Variants§
Pin(PinRegisterError)
Failed to register a pin with the HAL
Parameter(ParameterRegisterError)
Failed to register a pin with the HAL
Trait Implementations§
Source§impl Debug for ResourcesError
impl Debug for ResourcesError
Source§impl Display for ResourcesError
impl Display for ResourcesError
Source§impl Error for ResourcesError
impl Error for ResourcesError
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 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.
Auto Trait Implementations§
impl Freeze for ResourcesError
impl RefUnwindSafe for ResourcesError
impl Send for ResourcesError
impl Sync for ResourcesError
impl Unpin for ResourcesError
impl UnwindSafe for ResourcesError
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