Struct task::RestartInfo
pub struct RestartInfo {
pub argument: Box<dyn Any + Send, Global>,
pub func: Box<dyn Any + Send, Global>,
}
Expand description
A struct holding data items needed to restart a Task
.
Fields§
§argument: Box<dyn Any + Send, Global>
Stores the argument of the task for restartable tasks
func: Box<dyn Any + Send, Global>
Stores the function of the task for restartable tasks
Auto Trait Implementations§
impl !RefUnwindSafe for RestartInfo
impl Send for RestartInfo
impl !Sync for RestartInfo
impl Unpin for RestartInfo
impl !UnwindSafe for RestartInfo
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