pub struct CallFunctionOnCommand { /* private fields */ }Runtime only.Expand description
Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
Implementations§
Source§impl CallFunctionOnCommand
impl CallFunctionOnCommand
pub fn builder() -> CallFunctionOnCommandBuilder
Sourcepub fn function_declaration(&self) -> &str
pub fn function_declaration(&self) -> &str
Declaration of the function to call.
Sourcepub fn object_id(&self) -> Option<&RemoteObjectId>
pub fn object_id(&self) -> Option<&RemoteObjectId>
Identifier of the object to call function on. Either objectId or executionContextId should be specified.
Sourcepub fn arguments(&self) -> Option<&Vec<CallArgument>>
pub fn arguments(&self) -> Option<&Vec<CallArgument>>
Call arguments. All call arguments must belong to the same JavaScript world as the target object.
Sourcepub fn silent(&self) -> Option<&bool>
pub fn silent(&self) -> Option<&bool>
In silent mode exceptions thrown during evaluation are not reported and do not pause
execution. Overrides setPauseOnException state.
Sourcepub fn return_by_value(&self) -> Option<&bool>
pub fn return_by_value(&self) -> Option<&bool>
Whether the result is expected to be a JSON object which should be sent by value.
Sourcepub fn generate_preview(&self) -> Option<&bool>
Available on crate feature experimental only.
pub fn generate_preview(&self) -> Option<&bool>
experimental only.Whether preview should be generated for the result.
Sourcepub fn user_gesture(&self) -> Option<&bool>
pub fn user_gesture(&self) -> Option<&bool>
Whether execution should be treated as initiated by user in the UI.
Sourcepub fn await_promise(&self) -> Option<&bool>
pub fn await_promise(&self) -> Option<&bool>
Whether execution should await for resulting value and return once awaited promise is
resolved.
Sourcepub fn execution_context_id(&self) -> Option<&ExecutionContextId>
pub fn execution_context_id(&self) -> Option<&ExecutionContextId>
Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.
Sourcepub fn object_group(&self) -> Option<&String>
pub fn object_group(&self) -> Option<&String>
Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object.
Trait Implementations§
Source§impl Clone for CallFunctionOnCommand
impl Clone for CallFunctionOnCommand
Source§fn clone(&self) -> CallFunctionOnCommand
fn clone(&self) -> CallFunctionOnCommand
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more