Enum erg_compiler::module::promise::Promise
source · pub enum Promise {
Running {
parent: ThreadId,
handle: JoinHandle<()>,
},
Joining,
Joined,
}
Expand description
transition: Running(not finished) -> Running(finished) -> Joining -> Joined
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Promise
impl Send for Promise
impl Sync for Promise
impl Unpin for Promise
impl !UnwindSafe for Promise
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