ControllerInternals

Trait ControllerInternals 

Source
pub(crate) trait ControllerInternals: ClassDefinition {
    // Required methods
    fn common(&mut self) -> &mut CommonController;
    fn reset_queue(&mut self, cx: &Context);

    // Provided methods
    fn from_traced_heap<'h>(
        cx: &Context,
        heap: &'h TracedHeap<*mut JSObject>,
    ) -> Result<&'h mut Self> { ... }
    fn start(
        &mut self,
        cx: &Context,
        start: Option<&Function<'_>>,
    ) -> ResultExc<()> { ... }
    fn pull_if_needed(&mut self, cx: &Context) -> ResultExc<()> { ... }
    fn clear_algorithms(&mut self) { ... }
    fn error_internal(&mut self, cx: &Context, error: &Value<'_>) -> Result<()> { ... }
}

Required Methods§

Source

fn common(&mut self) -> &mut CommonController

Source

fn reset_queue(&mut self, cx: &Context)

Provided Methods§

Source

fn from_traced_heap<'h>( cx: &Context, heap: &'h TracedHeap<*mut JSObject>, ) -> Result<&'h mut Self>

Source

fn start(&mut self, cx: &Context, start: Option<&Function<'_>>) -> ResultExc<()>

Source

fn pull_if_needed(&mut self, cx: &Context) -> ResultExc<()>

Source

fn clear_algorithms(&mut self)

Source

fn error_internal(&mut self, cx: &Context, error: &Value<'_>) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§