pub struct ExportedTrace {
pub version: u16,
pub config: TracerConfig,
pub events: Vec<TraceEvent>,
pub index: TraceIndex,
pub pod_lifecycles: HashMap<(GVK, String), PodLifecyclesMap>,
}Fields§
§version: u16§config: TracerConfig§events: Vec<TraceEvent>§index: TraceIndex§pod_lifecycles: HashMap<(GVK, String), PodLifecyclesMap>Implementations§
Source§impl ExportedTrace
impl ExportedTrace
pub fn import( data: Vec<u8>, maybe_duration: Option<&String>, ) -> Result<ExportedTrace>
pub fn clone_with_events(&self, events: Vec<TraceEvent>) -> ExportedTrace
pub fn lookup_pod_lifecycle( &self, owner_gvk: &GVK, owner_ns_name: &str, pod_hash: u64, seq: usize, ) -> PodLifecycleData
pub fn append_event(&mut self, event: TraceEvent)
pub fn end_ts(&self) -> Option<i64>
pub fn events(&self) -> Vec<TraceEvent>
pub fn has_obj(&self, gvk: &GVK, ns_name: &str) -> bool
pub fn iter(&self) -> TraceIterator<'_> ⓘ
pub fn prepend_event(&mut self, event: TraceEvent)
pub fn start_ts(&self) -> Option<i64>
pub fn to_bytes(&self) -> Result<Vec<u8>>
Trait Implementations§
Source§impl Clone for ExportedTrace
impl Clone for ExportedTrace
Source§fn clone(&self) -> ExportedTrace
fn clone(&self) -> ExportedTrace
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 Default for ExportedTrace
impl Default for ExportedTrace
Source§impl<'de> Deserialize<'de> for ExportedTrace
impl<'de> Deserialize<'de> for ExportedTrace
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 ExportedTrace
impl RefUnwindSafe for ExportedTrace
impl Send for ExportedTrace
impl Sync for ExportedTrace
impl Unpin for ExportedTrace
impl UnwindSafe for ExportedTrace
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 more