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§
Sourcefn task_runner(&self) -> Option<TaskRunner>
fn task_runner(&self) -> Option<TaskRunner>
See _cef_v8_context_t::get_task_runner for more documentation.
Sourcefn is_valid(&self) -> c_int
fn is_valid(&self) -> c_int
See _cef_v8_context_t::is_valid for more documentation.
Sourcefn browser(&self) -> Option<Browser>
fn browser(&self) -> Option<Browser>
See _cef_v8_context_t::get_browser for more documentation.
Sourcefn frame(&self) -> Option<Frame>
fn frame(&self) -> Option<Frame>
See _cef_v8_context_t::get_frame for more documentation.
Sourcefn global(&self) -> Option<V8Value>
fn global(&self) -> Option<V8Value>
See _cef_v8_context_t::get_global for more documentation.
Sourcefn enter(&self) -> c_int
fn enter(&self) -> c_int
See _cef_v8_context_t::enter for more documentation.
Sourcefn exit(&self) -> c_int
fn exit(&self) -> c_int
See _cef_v8_context_t::exit for more documentation.
Sourcefn is_same(&self, that: Option<&mut V8Context>) -> c_int
fn is_same(&self, that: Option<&mut V8Context>) -> c_int
See _cef_v8_context_t::is_same for more documentation.
Sourcefn 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 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.
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.