Struct chromiumoxide::cdp::js_protocol::runtime::StackTrace
source · pub struct StackTrace {
pub description: Option<String>,
pub call_frames: Vec<CallFrame>,
pub parent: Option<Box<StackTrace>>,
pub parent_id: Option<StackTraceId>,
}
Expand description
Call frames for assertions or error messages. StackTrace
Fields§
§description: Option<String>
String label of this stack trace. For async traces this may be a name of the function that initiated the async call.
call_frames: Vec<CallFrame>
JavaScript function name.
parent: Option<Box<StackTrace>>
Asynchronous JavaScript stack trace that preceded this stack, if available.
parent_id: Option<StackTraceId>
Asynchronous JavaScript stack trace that preceded this stack, if available.
Implementations§
source§impl StackTrace
impl StackTrace
pub fn new(call_frames: Vec<CallFrame>) -> StackTrace
source§impl StackTrace
impl StackTrace
pub fn builder() -> StackTraceBuilder
source§impl StackTrace
impl StackTrace
pub const IDENTIFIER: &'static str = "Runtime.StackTrace"
Trait Implementations§
source§impl Clone for StackTrace
impl Clone for StackTrace
source§fn clone(&self) -> StackTrace
fn clone(&self) -> StackTrace
Returns a copy 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 StackTrace
impl Debug for StackTrace
source§impl<'de> Deserialize<'de> for StackTrace
impl<'de> Deserialize<'de> for StackTrace
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<StackTrace, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<StackTrace, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for StackTrace
impl Display for StackTrace
source§impl PartialEq for StackTrace
impl PartialEq for StackTrace
source§fn eq(&self, other: &StackTrace) -> bool
fn eq(&self, other: &StackTrace) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StackTrace
impl Serialize for StackTrace
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for StackTrace
Auto Trait Implementations§
impl Freeze for StackTrace
impl RefUnwindSafe for StackTrace
impl Send for StackTrace
impl Sync for StackTrace
impl Unpin for StackTrace
impl UnwindSafe for StackTrace
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