pub struct ConsoleApiCalledEventBuilder { /* private fields */ }Available on crate feature
Runtime only.Implementations§
Source§impl ConsoleApiCalledEventBuilder
impl ConsoleApiCalledEventBuilder
Sourcepub fn type(&mut self, v: ConsoleApiCalledEventType) -> &mut Self
pub fn type(&mut self, v: ConsoleApiCalledEventType) -> &mut Self
Type of the call.
Sourcepub fn args(&mut self, v: Vec<RemoteObject>) -> &mut Self
pub fn args(&mut self, v: Vec<RemoteObject>) -> &mut Self
Call arguments.
Sourcepub fn execution_context_id(&mut self, v: ExecutionContextId) -> &mut Self
pub fn execution_context_id(&mut self, v: ExecutionContextId) -> &mut Self
Identifier of the context where the call was made.
Sourcepub fn stack_trace(&mut self, v: StackTrace) -> &mut Self
pub fn stack_trace(&mut self, v: StackTrace) -> &mut Self
Stack trace captured when the call was made. The async stack chain is automatically reported for
the following call types: assert, error, trace, warning. For other types the async call
chain can be retrieved using Debugger.getStackTrace and stackTrace.parentId field.
Sourcepub fn context(&mut self, v: String) -> &mut Self
Available on crate feature experimental only.
pub fn context(&mut self, v: String) -> &mut Self
experimental only.Console context descriptor for calls on non-default console context (not console.*): ‘anonymous#unique-logger-id’ for call on unnamed context, ‘name#unique-logger-id’ for call on named context.
pub fn build(&mut self) -> Result<ConsoleApiCalledEvent, &'static str>
Trait Implementations§
Source§impl Clone for ConsoleApiCalledEventBuilder
impl Clone for ConsoleApiCalledEventBuilder
Source§fn clone(&self) -> ConsoleApiCalledEventBuilder
fn clone(&self) -> ConsoleApiCalledEventBuilder
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 Debug for ConsoleApiCalledEventBuilder
impl Debug for ConsoleApiCalledEventBuilder
Auto Trait Implementations§
impl Freeze for ConsoleApiCalledEventBuilder
impl RefUnwindSafe for ConsoleApiCalledEventBuilder
impl Send for ConsoleApiCalledEventBuilder
impl Sync for ConsoleApiCalledEventBuilder
impl Unpin for ConsoleApiCalledEventBuilder
impl UnwindSafe for ConsoleApiCalledEventBuilder
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