pub struct TracePersistence { /* private fields */ }Expand description
Main trace persistence handler
Implementations§
Source§impl TracePersistence
impl TracePersistence
Sourcepub fn set_binary_path(&mut self, path: String)
pub fn set_binary_path(&mut self, path: String)
Update binary path for the session
Sourcepub fn add_trace(&mut self, config: TraceConfig)
pub fn add_trace(&mut self, config: TraceConfig)
Add or update a trace configuration
Sourcepub fn remove_trace(&mut self, id: u32) -> Option<TraceConfig>
pub fn remove_trace(&mut self, id: u32) -> Option<TraceConfig>
Remove a trace configuration
Sourcepub fn update_trace_status(&mut self, id: u32, status: TraceStatus)
pub fn update_trace_status(&mut self, id: u32, status: TraceStatus)
Update trace status
Sourcepub fn get_filtered_traces(&self, filter: SaveFilter) -> Vec<&TraceConfig>
pub fn get_filtered_traces(&self, filter: SaveFilter) -> Vec<&TraceConfig>
Get all traces matching the filter
Sourcepub fn save_traces(
&self,
filename: Option<&str>,
filter: SaveFilter,
) -> Result<SaveResult>
pub fn save_traces( &self, filename: Option<&str>, filter: SaveFilter, ) -> Result<SaveResult>
Save traces to a file
Sourcepub fn parse_trace_file(content: &str) -> Result<Vec<TraceDefinition>>
pub fn parse_trace_file(content: &str) -> Result<Vec<TraceDefinition>>
Parse a saved trace file for loading
Sourcepub fn load_traces_from_file(filename: &str) -> Result<Vec<TraceDefinition>>
pub fn load_traces_from_file(filename: &str) -> Result<Vec<TraceDefinition>>
Load traces from a file
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TracePersistence
impl RefUnwindSafe for TracePersistence
impl Send for TracePersistence
impl Sync for TracePersistence
impl Unpin for TracePersistence
impl UnwindSafe for TracePersistence
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> 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