pub struct BlockTrace {
pub block_hash: String,
pub parent_hash: String,
pub tracing_targets: String,
pub storage_keys: String,
pub methods: String,
pub spans: Vec<Span>,
pub events: Vec<Event>,
}Expand description
Container for all related spans and events for the block being traced.
Fields§
§block_hash: StringHash of the block being traced
parent_hash: StringParent hash
tracing_targets: StringModule targets that were recorded by the tracing subscriber. Empty string means record all targets.
storage_keys: StringStorage key targets used to filter out events that do not have one of the storage keys. Empty string means do not filter out any events.
methods: StringMethod targets used to filter out events that do not have one of the event method. Empty string means do not filter out any events.
spans: Vec<Span>Vec of tracing spans
events: Vec<Event>Vec of tracing events
Trait Implementations§
Source§impl Clone for BlockTrace
impl Clone for BlockTrace
Source§fn clone(&self) -> BlockTrace
fn clone(&self) -> BlockTrace
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 BlockTrace
impl Debug for BlockTrace
Source§impl<'de> Deserialize<'de> for BlockTrace
impl<'de> Deserialize<'de> for BlockTrace
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 Freeze for BlockTrace
impl RefUnwindSafe for BlockTrace
impl Send for BlockTrace
impl Sync for BlockTrace
impl Unpin for BlockTrace
impl UnwindSafe for BlockTrace
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
Source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
Source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from.