Struct tokio::runtime::task::TaskHarnessScheduleHooks
source · pub(crate) struct TaskHarnessScheduleHooks {
pub(crate) task_terminate_callback: Option<Arc<dyn Fn(&TaskMeta<'_>) + Send + Sync>>,
}
Expand description
Hooks for scheduling tasks which are needed in the task harness.
Fields§
§task_terminate_callback: Option<Arc<dyn Fn(&TaskMeta<'_>) + Send + Sync>>
Trait Implementations§
source§impl Clone for TaskHarnessScheduleHooks
impl Clone for TaskHarnessScheduleHooks
source§fn clone(&self) -> TaskHarnessScheduleHooks
fn clone(&self) -> TaskHarnessScheduleHooks
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TaskHarnessScheduleHooks
impl !RefUnwindSafe for TaskHarnessScheduleHooks
impl Send for TaskHarnessScheduleHooks
impl Sync for TaskHarnessScheduleHooks
impl Unpin for TaskHarnessScheduleHooks
impl !UnwindSafe for TaskHarnessScheduleHooks
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