Struct chromiumoxide::cdp::js_protocol::debugger::RestartFrameParams
source · pub struct RestartFrameParams {
pub call_frame_id: CallFrameId,
pub mode: Option<RestartFrameMode>,
}Expand description
Restarts particular call frame from the beginning. The old, deprecated
behavior of restartFrame is to stay paused and allow further CDP commands
after a restart was scheduled. This can cause problems with restarting, so
we now continue execution immediatly after it has been scheduled until we
reach the beginning of the restarted frame.
To stay back-wards compatible, restartFrame now expects a mode
parameter to be present. If the mode parameter is missing, restartFrame
errors out.
The various return values are deprecated and callFrames is always empty.
Use the call frames from the Debugger#paused events instead, that fires
once V8 pauses at the beginning of the restarted function.
restartFrame
Fields§
§call_frame_id: CallFrameIdCall frame identifier to evaluate on.
mode: Option<RestartFrameMode>The mode parameter must be present and set to ‘StepInto’, otherwise
restartFrame will error out.
Implementations§
source§impl RestartFrameParams
impl RestartFrameParams
pub fn new(call_frame_id: impl Into<CallFrameId>) -> RestartFrameParams
source§impl RestartFrameParams
impl RestartFrameParams
pub fn builder() -> RestartFrameParamsBuilder
source§impl RestartFrameParams
impl RestartFrameParams
pub const IDENTIFIER: &'static str = "Debugger.restartFrame"
Trait Implementations§
source§impl Clone for RestartFrameParams
impl Clone for RestartFrameParams
source§fn clone(&self) -> RestartFrameParams
fn clone(&self) -> RestartFrameParams
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Command for RestartFrameParams
impl Command for RestartFrameParams
§type Response = RestartFrameReturns
type Response = RestartFrameReturns
source§impl Debug for RestartFrameParams
impl Debug for RestartFrameParams
source§impl<'de> Deserialize<'de> for RestartFrameParams
impl<'de> Deserialize<'de> for RestartFrameParams
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RestartFrameParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<RestartFrameParams, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
source§impl Method for RestartFrameParams
impl Method for RestartFrameParams
source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
DOM.removeNodesource§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
DOMsource§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
removeNodesource§impl MethodType for RestartFrameParams
impl MethodType for RestartFrameParams
source§impl PartialEq<RestartFrameParams> for RestartFrameParams
impl PartialEq<RestartFrameParams> for RestartFrameParams
source§fn eq(&self, other: &RestartFrameParams) -> bool
fn eq(&self, other: &RestartFrameParams) -> bool
self and other values to be equal, and is used
by ==.