pub enum Error {
InvalidIndex,
InvalidPermissions,
UnsupportedModification,
Overflow,
UnexpectedFailure(i32),
}Expand description
The ways in which we can fail to access OTP
Variants§
InvalidIndex
The user passed an invalid index to a function.
InvalidPermissions
The hardware refused to let us read this word, probably due to read or write lock set earlier in the boot process.
UnsupportedModification
Modification is impossible based on current state; e.g. attempted to clear an OTP bit.
Overflow
Value being written is bigger than 24 bits allowed for raw writes.
UnexpectedFailure(i32)
An unexpected failure that contains the exact return code
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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