Enum rustc_incremental::persist::load::MaybeAsync [−][src]
pub enum MaybeAsync<T> {
Sync(T),
Async(JoinHandle<T>),
}
Expand description
Either a result that has already be computed or a handle that will let us wait until it is computed by a background thread.
Variants
Async(JoinHandle<T>)
Tuple Fields of Async
0: JoinHandle<T>
Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for MaybeAsync<T>
impl<T> Send for MaybeAsync<T> where
T: Send,
impl<T> Sync for MaybeAsync<T> where
T: Sync,
impl<T> Unpin for MaybeAsync<T> where
T: Unpin,
impl<T> !UnwindSafe for MaybeAsync<T>
Blanket Implementations
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.