Struct rustc_query_system::query::QueryJob [−][src]
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: SpanExpand description
The span corresponding to the reason for which this query was required.
parent: Option<QueryJobId<D>>Expand description
The parent query job which created this job and is implicitly waiting on it.
Implementations
impl<D> QueryJob<D> where
D: Copy + Clone + Eq + Hash, [src]
impl<D> QueryJob<D> where
D: Copy + Clone + Eq + Hash, [src]pub fn new(
id: QueryShardJobId,
span: Span,
parent: Option<QueryJobId<D>>
) -> Self[src]
pub fn new(
id: QueryShardJobId,
span: Span,
parent: Option<QueryJobId<D>>
) -> Self[src]Creates a new query job.
pub fn signal_complete(self)[src]
pub fn signal_complete(self)[src]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,
D: RefUnwindSafe,
impl<D> !Send for QueryJob<D>
impl<D> !Sync for QueryJob<D>
impl<D> Unpin for QueryJob<D> where
D: Unpin,
D: Unpin,
impl<D> UnwindSafe for QueryJob<D> where
D: UnwindSafe,
D: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more