[][src]Trait deno::Dispatch

pub trait Dispatch {
    fn dispatch(
        &mut self,
        control: &[u8],
        zero_copy_buf: deno_buf
    ) -> (bool, Box<Op>); }

Defines the how Deno.core.dispatch() acts.

Required methods

fn dispatch(
    &mut self,
    control: &[u8],
    zero_copy_buf: deno_buf
) -> (bool, Box<Op>)

Called whenever Deno.core.dispatch() is called in JavaScript. zero_copy_buf corresponds to the second argument of Deno.core.dispatch().

Loading content...

Implementors

Loading content...