Enum task::InitCurrentTaskError
source · pub enum InitCurrentTaskError {
MismatchedTaskIds(usize, usize),
NotInTasklist(usize),
AlreadyInited(usize),
AlreadyBorrowed(usize),
}
Expand description
An error type indicating that the current task was already initialized.
Variants§
MismatchedTaskIds(usize, usize)
The task IDs used as arguments to init_current_task()
did not match.
NotInTasklist(usize)
The enclosed Task ID was not in the system-wide task list.
AlreadyInited(usize)
The current task was already initialized; its task ID is enclosed.
AlreadyBorrowed(usize)
The current task reference was already borrowed, thus it could not be mutably borrowed again. The ID of the task attempting to be initialized is enclosed.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for InitCurrentTaskError
impl Send for InitCurrentTaskError
impl Sync for InitCurrentTaskError
impl Unpin for InitCurrentTaskError
impl UnwindSafe for InitCurrentTaskError
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