ImplV8Context

Trait ImplV8Context 

Source
pub trait ImplV8Context:
    Clone
    + Sized
    + Rc {
    // Required methods
    fn task_runner(&self) -> Option<TaskRunner>;
    fn is_valid(&self) -> c_int;
    fn browser(&self) -> Option<Browser>;
    fn frame(&self) -> Option<Frame>;
    fn global(&self) -> Option<V8Value>;
    fn enter(&self) -> c_int;
    fn exit(&self) -> c_int;
    fn is_same(&self, that: Option<&mut V8Context>) -> c_int;
    fn eval(
        &self,
        code: Option<&CefString>,
        script_url: Option<&CefString>,
        start_line: c_int,
        retval: Option<&mut Option<V8Value>>,
        exception: Option<&mut Option<V8Exception>>,
    ) -> c_int;
    fn get_raw(&self) -> *mut _cef_v8_context_t;
}

Required Methods§

Source

fn task_runner(&self) -> Option<TaskRunner>

See _cef_v8_context_t::get_task_runner for more documentation.

Source

fn is_valid(&self) -> c_int

See _cef_v8_context_t::is_valid for more documentation.

Source

fn browser(&self) -> Option<Browser>

See _cef_v8_context_t::get_browser for more documentation.

Source

fn frame(&self) -> Option<Frame>

See _cef_v8_context_t::get_frame for more documentation.

Source

fn global(&self) -> Option<V8Value>

See _cef_v8_context_t::get_global for more documentation.

Source

fn enter(&self) -> c_int

See _cef_v8_context_t::enter for more documentation.

Source

fn exit(&self) -> c_int

See _cef_v8_context_t::exit for more documentation.

Source

fn is_same(&self, that: Option<&mut V8Context>) -> c_int

See _cef_v8_context_t::is_same for more documentation.

Source

fn eval( &self, code: Option<&CefString>, script_url: Option<&CefString>, start_line: c_int, retval: Option<&mut Option<V8Value>>, exception: Option<&mut Option<V8Exception>>, ) -> c_int

See _cef_v8_context_t::eval for more documentation.

Source

fn get_raw(&self) -> *mut _cef_v8_context_t

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§