pub struct PromiseState {
pub status: PromiseStatus,
pub value: Value,
pub reactions: Vec<Reaction>,
}Fields§
§status: PromiseStatus§value: Valuefulfilled の値、または rejected の理由。
reactions: Vec<Reaction>pending 中に登録された反応(settle 時にマイクロタスクへ)。
Implementations§
Source§impl PromiseState
impl PromiseState
Auto Trait Implementations§
impl !RefUnwindSafe for PromiseState
impl !Send for PromiseState
impl !Sync for PromiseState
impl !UnwindSafe for PromiseState
impl Freeze for PromiseState
impl Unpin for PromiseState
impl UnsafeUnpin for PromiseState
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