pub enum FutureState {
Running,
Done(Value),
Failed(Value),
GasExhausted,
Cancelled,
}Expand description
Thread-pool future state.
Variants§
Running
Done(Value)
Failed(Value)
The future’s body threw. Holds the thrown Clojure value (a
Value::Error) so await/deref can re-throw it with its
ex-data/ex-cause intact, rather than a stringified message.
GasExhausted
The future exhausted the evaluation budget. Kept distinct from a thrown value so user-level catch clauses cannot intercept it.
Cancelled
Auto Trait Implementations§
impl !RefUnwindSafe for FutureState
impl !Send for FutureState
impl !Sync for FutureState
impl !UnwindSafe for FutureState
impl Freeze for FutureState
impl Unpin for FutureState
impl UnsafeUnpin for FutureState
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