pub struct StackTraceBuilder { /* private fields */ }Expand description
Builder for StackTrace.
Implementations§
Source§impl StackTraceBuilder
impl StackTraceBuilder
Sourcepub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &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<VALUE: Into<Vec<CallFrame>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn call_frames<VALUE: Into<Vec<CallFrame>>>( &mut self, value: VALUE, ) -> &mut Self
JavaScript function name.
Sourcepub fn parent<VALUE: Into<Box<StackTrace>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn parent<VALUE: Into<Box<StackTrace>>>( &mut self, value: VALUE, ) -> &mut Self
Asynchronous JavaScript stack trace that preceded this stack, if available.
Sourcepub fn parent_id<VALUE: Into<StackTraceId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn parent_id<VALUE: Into<StackTraceId>>( &mut self, value: VALUE, ) -> &mut Self
Asynchronous JavaScript stack trace that preceded this stack, if available.
Sourcepub fn build(&self) -> Result<StackTrace, StackTraceBuilderError>
pub fn build(&self) -> Result<StackTrace, StackTraceBuilderError>
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 moreAuto Trait Implementations§
impl Freeze for StackTraceBuilder
impl RefUnwindSafe for StackTraceBuilder
impl Send for StackTraceBuilder
impl Sync for StackTraceBuilder
impl Unpin for StackTraceBuilder
impl UnsafeUnpin 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