Enum v8::MicrotasksPolicy
source · #[repr(C)]
pub enum MicrotasksPolicy {
Explicit,
Auto,
}
Expand description
Policy for running microtasks:
- explicit: microtasks are invoked with the Isolate::PerformMicrotaskCheckpoint() method;
- auto: microtasks are invoked when the script call depth decrements to zero.
Variants§
Trait Implementations§
source§impl Clone for MicrotasksPolicy
impl Clone for MicrotasksPolicy
source§fn clone(&self) -> MicrotasksPolicy
fn clone(&self) -> MicrotasksPolicy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MicrotasksPolicy
impl Debug for MicrotasksPolicy
source§impl PartialEq<MicrotasksPolicy> for MicrotasksPolicy
impl PartialEq<MicrotasksPolicy> for MicrotasksPolicy
source§fn eq(&self, other: &MicrotasksPolicy) -> bool
fn eq(&self, other: &MicrotasksPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.