pub struct SetScriptSource {
pub method: SetScriptSourceMethod,
pub params: SetScriptSourceParams,
}Expand description
Edits JavaScript source live.
In general, functions that are currently on the stack can not be edited with
a single exception: If the edited function is the top-most stack frame and
that is the only activation of that function on the stack. In this case
the live edit will be successful and a Debugger.restartFrame for the
top-most function is automatically triggered.
setScriptSource
Fields§
§method: SetScriptSourceMethod§params: SetScriptSourceParamsImplementations§
Source§impl SetScriptSource
impl SetScriptSource
pub fn builder() -> SetScriptSourceBuilder
Source§impl SetScriptSource
impl SetScriptSource
pub const IDENTIFIER: &'static str = "Debugger.setScriptSource"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SetScriptSource
impl Clone for SetScriptSource
Source§fn clone(&self) -> SetScriptSource
fn clone(&self) -> SetScriptSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CommandResult for SetScriptSource
impl CommandResult for SetScriptSource
type Result = SetScriptSourceResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for SetScriptSource
impl Debug for SetScriptSource
Source§impl<'de> Deserialize<'de> for SetScriptSource
impl<'de> Deserialize<'de> for SetScriptSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SetScriptSource> for Command
impl From<SetScriptSource> for Command
Source§fn from(v: SetScriptSource) -> Self
fn from(v: SetScriptSource) -> Self
Converts to this type from the input type.
Source§impl From<SetScriptSource> for DebuggerCommands
impl From<SetScriptSource> for DebuggerCommands
Source§fn from(v: SetScriptSource) -> Self
fn from(v: SetScriptSource) -> Self
Converts to this type from the input type.
Source§impl From<SetScriptSource> for JsProtocolCommands
impl From<SetScriptSource> for JsProtocolCommands
Source§fn from(v: SetScriptSource) -> Self
fn from(v: SetScriptSource) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SetScriptSource
impl PartialEq for SetScriptSource
Source§impl Serialize for SetScriptSource
impl Serialize for SetScriptSource
Source§impl TryFrom<Command> for SetScriptSource
impl TryFrom<Command> for SetScriptSource
Source§impl TryFrom<DebuggerCommands> for SetScriptSource
impl TryFrom<DebuggerCommands> for SetScriptSource
Source§type Error = DebuggerCommands
type Error = DebuggerCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: DebuggerCommands,
) -> Result<Self, <SetScriptSource as TryFrom<DebuggerCommands>>::Error>
fn try_from( e: DebuggerCommands, ) -> Result<Self, <SetScriptSource as TryFrom<DebuggerCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<JsProtocolCommands> for SetScriptSource
impl TryFrom<JsProtocolCommands> for SetScriptSource
Source§type Error = JsProtocolCommands
type Error = JsProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: JsProtocolCommands,
) -> Result<Self, <SetScriptSource as TryFrom<JsProtocolCommands>>::Error>
fn try_from( e: JsProtocolCommands, ) -> Result<Self, <SetScriptSource as TryFrom<JsProtocolCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for SetScriptSource
Auto Trait Implementations§
impl Freeze for SetScriptSource
impl RefUnwindSafe for SetScriptSource
impl Send for SetScriptSource
impl Sync for SetScriptSource
impl Unpin for SetScriptSource
impl UnsafeUnpin for SetScriptSource
impl UnwindSafe for SetScriptSource
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