Struct tokio::runtime::task_hooks::TaskHooks
source · pub(crate) struct TaskHooks {
pub(crate) task_spawn_callback: Option<Arc<dyn Fn(&TaskMeta<'_>) + Send + Sync>>,
pub(crate) task_terminate_callback: Option<Arc<dyn Fn(&TaskMeta<'_>) + Send + Sync>>,
}
Fields§
§task_spawn_callback: Option<Arc<dyn Fn(&TaskMeta<'_>) + Send + Sync>>
§task_terminate_callback: Option<Arc<dyn Fn(&TaskMeta<'_>) + Send + Sync>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskHooks
impl !RefUnwindSafe for TaskHooks
impl Send for TaskHooks
impl Sync for TaskHooks
impl Unpin for TaskHooks
impl !UnwindSafe for TaskHooks
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