[][src]Struct rusty_v8::Message

#[repr(C)]pub struct Message(_);

An error message.

Implementations

impl Message[src]

pub fn get<'s>(&self, scope: &mut HandleScope<'s>) -> Local<'s, String>[src]

pub fn get_stack_trace<'s>(
    &self,
    scope: &mut HandleScope<'s>
) -> Option<Local<'s, StackTrace>>
[src]

Exception stack trace. By default stack traces are not captured for uncaught exceptions. SetCaptureStackTraceForUncaughtExceptions allows to change this option.

pub fn get_source_line<'s>(
    &self,
    scope: &mut HandleScope<'s>
) -> Option<Local<'s, String>>
[src]

pub fn get_script_resource_name<'s>(
    &self,
    scope: &mut HandleScope<'s>
) -> Option<Local<'s, Value>>
[src]

Returns the resource name for the script from where the function causing the error originates.

pub fn get_line_number(&self, scope: &mut HandleScope<'_>) -> Option<usize>[src]

Returns the number, 1-based, of the line where the error occurred.

pub fn get_start_position(&self) -> int[src]

Returns the index within the script of the first character where the error occurred.

pub fn get_end_position(&self) -> int[src]

Returns the index within the script of the last character where the error occurred.

pub fn get_wasm_function_index(&self) -> int[src]

Returns the Wasm function index where the error occurred. Returns -1 if message is not from a Wasm script.

pub fn error_level(&self) -> int[src]

Returns the error level of the message.

pub fn get_start_column(&self) -> usize[src]

Returns the index within the line of the first character where the error occurred.

pub fn get_end_column(&self) -> usize[src]

Returns the index within the line of the last character where the error occurred.

pub fn is_shared_cross_origin(&self) -> bool[src]

Passes on the value set by the embedder when it fed the script from which this Message was generated to V8.

pub fn is_opaque(&self) -> bool[src]

Methods from Deref<Target = Data>

pub fn get_hash(&self) -> int[src]

Returns the V8 hash value for this value. The current implementation uses a hidden property to store the identity hash on some object types.

The return value will never be 0. Also, it is not guaranteed to be unique.

pub fn is_value(&self) -> bool[src]

Returns true if this data is a Value.

pub fn is_module(&self) -> bool[src]

Returns true if this data is a Module.

pub fn is_private(&self) -> bool[src]

Returns true if this data is a Private.

pub fn is_object_template(&self) -> bool[src]

Returns true if this data is an ObjectTemplate

pub fn is_function_template(&self) -> bool[src]

Returns true if this data is a FunctionTemplate.

Trait Implementations

impl Deref for Message[src]

type Target = Data

The resulting type after dereferencing.

impl Eq for Message[src]

impl Hash for Message[src]

impl<'s> PartialEq<Data> for Message[src]

impl<'s> PartialEq<Message> for Data[src]

impl<'s> PartialEq<Message> for Message[src]

Auto Trait Implementations

impl RefUnwindSafe for Message

impl Send for Message

impl Sync for Message

impl Unpin for Message

impl UnwindSafe for Message

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.