pub struct StackTraceBuilder { /* private fields */ }Available on crate feature
Runtime only.Implementations§
Source§impl StackTraceBuilder
impl StackTraceBuilder
Sourcepub fn description(&mut self, v: String) -> &mut Self
pub fn description(&mut self, v: String) -> &mut Self
String label of this stack trace. For async traces this may be a name of the function that initiated the async call.
Sourcepub fn call_frames(&mut self, v: Vec<CallFrame>) -> &mut Self
pub fn call_frames(&mut self, v: Vec<CallFrame>) -> &mut Self
JavaScript function name.
Sourcepub fn parent(&mut self, v: StackTrace) -> &mut Self
pub fn parent(&mut self, v: StackTrace) -> &mut Self
Asynchronous JavaScript stack trace that preceded this stack, if available.
Sourcepub fn parent_id(&mut self, v: JsonValue) -> &mut Self
Available on crate feature experimental only.
pub fn parent_id(&mut self, v: JsonValue) -> &mut Self
experimental only.Asynchronous JavaScript stack trace that preceded this stack, if available.
pub fn build(&mut self) -> Result<StackTrace, &'static str>
Trait Implementations§
Source§impl Clone for StackTraceBuilder
impl Clone for StackTraceBuilder
Source§fn clone(&self) -> StackTraceBuilder
fn clone(&self) -> StackTraceBuilder
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 StackTraceBuilder
impl Debug for StackTraceBuilder
Auto Trait Implementations§
impl Freeze for StackTraceBuilder
impl RefUnwindSafe for StackTraceBuilder
impl Send for StackTraceBuilder
impl Sync for StackTraceBuilder
impl Unpin for StackTraceBuilder
impl UnwindSafe for StackTraceBuilder
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