pub struct CallFrame {
pub call_frame_id: CallFrameId,
pub function_name: String,
pub function_location: Option<Location>,
pub location: Location,
pub scope_chain: Vec<Scope>,
pub this: RemoteObject,
pub return_value: Option<RemoteObject>,
pub can_be_restarted: Option<bool>,
}
Expand description
JavaScript call frame. Array of call frames form the call stack. CallFrame
Fields§
§call_frame_id: CallFrameId
Call frame identifier. This identifier is only valid while the virtual machine is paused.
function_name: String
Name of the JavaScript function called on this call frame.
function_location: Option<Location>
Location in the source code.
location: Location
Location in the source code.
scope_chain: Vec<Scope>
Scope chain for this call frame.
this: RemoteObject
this
object for this call frame.
return_value: Option<RemoteObject>
The value being returned, if the function is at return point.
can_be_restarted: Option<bool>
Valid only while the VM is paused and indicates whether this frame
can be restarted or not. Note that a true
value here does not
guarantee that Debugger#restartFrame with this CallFrameId will be
successful, but it is very likely.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CallFrame
impl<'de> Deserialize<'de> for CallFrame
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CallFrame, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CallFrame, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CallFrame
impl Serialize for CallFrame
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CallFrame
Auto Trait Implementations§
impl Freeze for CallFrame
impl RefUnwindSafe for CallFrame
impl Send for CallFrame
impl Sync for CallFrame
impl Unpin for CallFrame
impl UnwindSafe for CallFrame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more