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
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 for RestartFrameParams
 
impl PartialEq for RestartFrameParams
Source§impl Serialize for RestartFrameParams
 
impl Serialize for RestartFrameParams
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,
impl StructuralPartialEq for RestartFrameParams
Auto Trait Implementations§
impl Freeze for RestartFrameParams
impl RefUnwindSafe for RestartFrameParams
impl Send for RestartFrameParams
impl Sync for RestartFrameParams
impl Unpin for RestartFrameParams
impl UnwindSafe for RestartFrameParams
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
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>
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>
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