Struct rustc_query_system::query::QueryJob
source · [−]pub struct QueryJob<D> {
pub id: QueryShardJobId,
pub span: Span,
pub parent: Option<QueryJobId<D>>,
}Expand description
Represents an active query job.
Fields
id: QueryShardJobIdspan: SpanThe span corresponding to the reason for which this query was required.
parent: Option<QueryJobId<D>>The parent query job which created this job and is implicitly waiting on it.
Implementations
sourceimpl<D> QueryJob<D> where
D: Copy + Clone + Eq + Hash,
impl<D> QueryJob<D> where
D: Copy + Clone + Eq + Hash,
sourcepub fn new(
id: QueryShardJobId,
span: Span,
parent: Option<QueryJobId<D>>
) -> Self
pub fn new(
id: QueryShardJobId,
span: Span,
parent: Option<QueryJobId<D>>
) -> Self
Creates a new query job.
sourcepub fn signal_complete(self)
pub fn signal_complete(self)
Signals to waiters that the query is complete.
This does nothing for single threaded rustc, as there are no concurrent jobs which could be waiting on us
Trait Implementations
Auto Trait Implementations
impl<D> RefUnwindSafe for QueryJob<D> where
D: RefUnwindSafe,
impl<D> !Send for QueryJob<D>
impl<D> !Sync for QueryJob<D>
impl<D> Unpin for QueryJob<D> where
D: Unpin,
impl<D> UnwindSafe for QueryJob<D> where
D: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.