Enum rustc_incremental::persist::load::MaybeAsync [−][src]
pub enum MaybeAsync<T> { Sync(T), Async(JoinHandle<T>), }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
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
Sync(T)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Async(JoinHandle<T>)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Methods
impl<T> MaybeAsync<T>
[src]
impl<T> MaybeAsync<T>
pub fn open(self) -> Result<T>
[src]
pub fn open(self) -> Result<T>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Auto Trait Implementations
impl<T> Send for MaybeAsync<T> where
T: Send,
impl<T> Send for MaybeAsync<T> where
T: Send,
impl<T> Sync for MaybeAsync<T> where
T: Sync,
impl<T> Sync for MaybeAsync<T> where
T: Sync,