pub struct TraceStore { /* private fields */ }Implementations§
Source§impl TraceStore
impl TraceStore
pub fn new(config: TracerConfig) -> TraceStore
pub fn clone_with_events(&self, events: TraceEventList) -> TraceStore
pub fn export( &self, start_ts: i64, end_ts: i64, filter: &ExportFilters, ) -> Result<Vec<u8>>
pub fn export_all(&self) -> Result<Vec<u8>>
pub fn import( data: Vec<u8>, maybe_duration: &Option<String>, ) -> Result<TraceStore>
pub fn from_exported_trace( exported_trace: ExportedTrace, maybe_duration: &Option<String>, ) -> Result<TraceStore>
Trait Implementations§
Source§impl Clone for TraceStore
impl Clone for TraceStore
Source§fn clone(&self) -> TraceStore
fn clone(&self) -> TraceStore
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 Default for TraceStore
impl Default for TraceStore
Source§fn default() -> TraceStore
fn default() -> TraceStore
Returns the “default value” for a type. Read more
Source§impl TraceStorable for TraceStore
impl TraceStorable for TraceStore
fn create_or_update_obj( &mut self, obj: &DynamicObject, ts: i64, maybe_old_hash: Option<u64>, ) -> EmptyResult
fn delete_obj(&mut self, obj: &DynamicObject, ts: i64) -> EmptyResult
fn update_all_objs_for_gvk( &mut self, gvk: &GVK, objs: &[DynamicObject], ts: i64, ) -> EmptyResult
fn lookup_pod_lifecycle( &self, owner_gvk: &GVK, owner_ns_name: &str, pod_hash: u64, seq: usize, ) -> PodLifecycleData
fn record_pod_lifecycle( &mut self, ns_name: &str, maybe_pod: Option<Pod>, owners: Vec<OwnerReference>, lifecycle_data: &PodLifecycleData, ) -> EmptyResult
fn config(&self) -> &TracerConfig
fn has_obj(&self, gvk: &GVK, ns_name: &str) -> bool
fn start_ts(&self) -> Option<i64>
fn end_ts(&self) -> Option<i64>
fn iter(&self) -> TraceIterator<'_> ⓘ
Auto Trait Implementations§
impl Freeze for TraceStore
impl RefUnwindSafe for TraceStore
impl Send for TraceStore
impl Sync for TraceStore
impl Unpin for TraceStore
impl UnwindSafe for TraceStore
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