Enum v8::MicrotasksPolicy
source · #[repr(C)]pub enum MicrotasksPolicy {
Explicit = 0,
Auto = 2,
}
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 for MicrotasksPolicy
impl PartialEq 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 ==
.impl Copy for MicrotasksPolicy
impl Eq for MicrotasksPolicy
impl StructuralEq for MicrotasksPolicy
impl StructuralPartialEq for MicrotasksPolicy
Auto Trait Implementations§
impl RefUnwindSafe for MicrotasksPolicy
impl Send for MicrotasksPolicy
impl Sync for MicrotasksPolicy
impl Unpin for MicrotasksPolicy
impl UnwindSafe for MicrotasksPolicy
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