pub struct StackTrace<'a> { /* private fields */ }Expand description
Call frames for assertions or error messages.
Implementations§
Source§impl<'a> StackTrace<'a>
impl<'a> StackTrace<'a>
Sourcepub fn builder(call_frames: Vec<CallFrame<'a>>) -> StackTraceBuilder<'a>
pub fn builder(call_frames: Vec<CallFrame<'a>>) -> StackTraceBuilder<'a>
Creates a builder for this type with the required parameters:
call_frames: JavaScript function name.
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
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(&self) -> &[CallFrame<'a>]
pub fn call_frames(&self) -> &[CallFrame<'a>]
JavaScript function name.
Sourcepub fn parent(&self) -> Option<&StackTrace<'a>>
pub fn parent(&self) -> Option<&StackTrace<'a>>
Asynchronous JavaScript stack trace that preceded this stack, if available.
Sourcepub fn parent_id(&self) -> Option<&StackTraceId<'a>>
pub fn parent_id(&self) -> Option<&StackTraceId<'a>>
Asynchronous JavaScript stack trace that preceded this stack, if available.
Trait Implementations§
Source§impl<'a> Clone for StackTrace<'a>
impl<'a> Clone for StackTrace<'a>
Source§fn clone(&self) -> StackTrace<'a>
fn clone(&self) -> StackTrace<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for StackTrace<'a>
impl<'a> Debug for StackTrace<'a>
Source§impl<'a> Default for StackTrace<'a>
impl<'a> Default for StackTrace<'a>
Source§fn default() -> StackTrace<'a>
fn default() -> StackTrace<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for StackTrace<'a>
impl<'de, 'a> Deserialize<'de> for StackTrace<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for StackTrace<'a>
impl<'a> RefUnwindSafe for StackTrace<'a>
impl<'a> Send for StackTrace<'a>
impl<'a> Sync for StackTrace<'a>
impl<'a> Unpin for StackTrace<'a>
impl<'a> UnsafeUnpin for StackTrace<'a>
impl<'a> UnwindSafe for StackTrace<'a>
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