pub struct Reaction {
pub on_fulfilled: Option<Value>,
pub on_rejected: Option<Value>,
pub result: Rc<RefCell<PromiseState>>,
}Expand description
settle 時に消費する then 反応。
Fields§
§on_fulfilled: Option<Value>§on_rejected: Option<Value>§result: Rc<RefCell<PromiseState>>この反応の結果を反映する派生 Promise。
Auto Trait Implementations§
impl !RefUnwindSafe for Reaction
impl !Send for Reaction
impl !Sync for Reaction
impl !UnwindSafe for Reaction
impl Freeze for Reaction
impl Unpin for Reaction
impl UnsafeUnpin for Reaction
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