Enum rustc_query_system::query::plumbing::QueryResult
source · enum QueryResult {
Started(QueryJob),
Poisoned,
}Expand description
Indicates the state of a query for a given key in a query map.
Variants§
Started(QueryJob)
An already executing query. The query job can be used to await for its completion.
Poisoned
The query panicked. Queries trying to wait on this will raise a fatal error which will silently panic.
Implementations§
source§impl QueryResult
impl QueryResult
sourcefn expect_job(self) -> QueryJob
fn expect_job(self) -> QueryJob
Unwraps the query job expecting that it has started.
Auto Trait Implementations§
impl !RefUnwindSafe for QueryResult
impl Send for QueryResult
impl Sync for QueryResult
impl Unpin for QueryResult
impl !UnwindSafe for QueryResult
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
source§impl<Tcx, T> Value<Tcx> for Twhere
Tcx: DepContext,
impl<Tcx, T> Value<Tcx> for Twhere
Tcx: DepContext,
default fn from_cycle_error( tcx: Tcx, cycle_error: &CycleError, _guar: ErrorGuaranteed ) -> T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
Started: 32 bytesPoisoned: 0 bytes