Enum ScheduleError
pub enum ScheduleError {
NotInMod,
TooMany,
}Expand description
Why a task was not scheduled.
Variants§
NotInMod
The caller is not inside a mod’s hook, so no mod owns the task.
TooMany
The mod already has MAX_PENDING_TASKS tasks waiting.
Trait Implementations§
§impl Clone for ScheduleError
impl Clone for ScheduleError
§fn clone(&self) -> ScheduleError
fn clone(&self) -> ScheduleError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScheduleError
§impl Debug for ScheduleError
impl Debug for ScheduleError
impl Eq for ScheduleError
§impl PartialEq for ScheduleError
impl PartialEq for ScheduleError
impl StructuralPartialEq for ScheduleError
Auto Trait Implementations§
impl Freeze for ScheduleError
impl RefUnwindSafe for ScheduleError
impl Send for ScheduleError
impl Sync for ScheduleError
impl Unpin for ScheduleError
impl UnsafeUnpin for ScheduleError
impl UnwindSafe for ScheduleError
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