pub struct TaskSite {
pub file: &'static str,
pub line: u32,
}Expand description
Where an effect was written, carried onto the task it spawns.
A leak report that can only say “one task is still queued” names nothing: every run prints the same number and no run says which effect it was. This is what turns that count into a place to look, and it stays a pair of plain fields so carrying it costs nothing until a task is actually spawned.
Fields§
§file: &'static str§line: u32Implementations§
Trait Implementations§
impl Copy for TaskSite
impl Eq for TaskSite
impl StructuralPartialEq for TaskSite
Auto Trait Implementations§
impl Freeze for TaskSite
impl RefUnwindSafe for TaskSite
impl Send for TaskSite
impl Sync for TaskSite
impl Unpin for TaskSite
impl UnsafeUnpin for TaskSite
impl UnwindSafe for TaskSite
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