pub struct TaskHandler {
task: Task<()>,
stop_signal: Arc<CondWait>,
cancel_flag: Arc<CondWait>,
}Expand description
TaskHandler
Fields§
§task: Task<()>§stop_signal: Arc<CondWait>Per-task stop signal. Signaling it makes the task stop and run its
callback with Cancelled.
cancel_flag: Arc<CondWait>Set once the task has finished running its callback.
Implementations§
Source§impl TaskHandler
impl TaskHandler
Auto Trait Implementations§
impl Freeze for TaskHandler
impl !RefUnwindSafe for TaskHandler
impl Send for TaskHandler
impl Sync for TaskHandler
impl Unpin for TaskHandler
impl UnsafeUnpin for TaskHandler
impl !UnwindSafe for TaskHandler
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