pub struct RunnableMeta {
pub location: &'static Location<'static>,
pub spawned: SpawnTime,
}Expand description
Metadata attached to runnables for debugging and profiling.
Fields§
§location: &'static Location<'static>The source location where the task was spawned.
spawned: SpawnTimeThe moment the task was spawned.
Implementations§
Source§impl RunnableMeta
impl RunnableMeta
pub fn new_with_callers_location() -> Self
Trait Implementations§
Source§impl Clone for RunnableMeta
impl Clone for RunnableMeta
Source§fn clone(&self) -> RunnableMeta
fn clone(&self) -> RunnableMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RunnableMeta
impl RefUnwindSafe for RunnableMeta
impl Send for RunnableMeta
impl Sync for RunnableMeta
impl Unpin for RunnableMeta
impl UnsafeUnpin for RunnableMeta
impl UnwindSafe for RunnableMeta
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