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
Explicit
Auto
Trait Implementations
sourceimpl Clone for MicrotasksPolicy
impl Clone for MicrotasksPolicy
sourcefn clone(&self) -> MicrotasksPolicy
fn clone(&self) -> MicrotasksPolicy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MicrotasksPolicy
impl Debug for MicrotasksPolicy
sourceimpl PartialEq<MicrotasksPolicy> for MicrotasksPolicy
impl PartialEq<MicrotasksPolicy> for MicrotasksPolicy
impl Copy 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more