pub enum ScheduledTaskRegistrationOutcome {
Scheduled(TaskId),
AlreadyPresent,
}Expand description
Describes the result of registering a scheduled task.
A duplicate schedule name is a normal outcome. The existing registration, its driver, and its metrics remain unchanged.
Variants§
Scheduled(TaskId)
The task was registered and its driver was started.
AlreadyPresent
A task with the requested name was already registered.
Trait Implementations§
impl Copy for ScheduledTaskRegistrationOutcome
impl Eq for ScheduledTaskRegistrationOutcome
impl StructuralPartialEq for ScheduledTaskRegistrationOutcome
Auto Trait Implementations§
impl Freeze for ScheduledTaskRegistrationOutcome
impl RefUnwindSafe for ScheduledTaskRegistrationOutcome
impl Send for ScheduledTaskRegistrationOutcome
impl Sync for ScheduledTaskRegistrationOutcome
impl Unpin for ScheduledTaskRegistrationOutcome
impl UnsafeUnpin for ScheduledTaskRegistrationOutcome
impl UnwindSafe for ScheduledTaskRegistrationOutcome
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