pub struct FileTrace { /* private fields */ }
Expand description
A trace session that reads events from an ETL file
To stop the session, you can drop this instance
Implementations§
source§impl FileTrace
impl FileTrace
sourcepub fn new<T>(path: PathBuf, callback: T) -> FileTraceBuilderwhere
T: FnMut(&EventRecord, &SchemaLocator) + Send + Sync + 'static,
pub fn new<T>(path: PathBuf, callback: T) -> FileTraceBuilderwhere T: FnMut(&EventRecord, &SchemaLocator) + Send + Sync + 'static,
Create a trace that will read events from a file
Trait Implementations§
source§impl TraceTrait for FileTrace
impl TraceTrait for FileTrace
fn trace_handle(&self) -> TraceHandle
fn events_handled(&self) -> usize
source§fn process(&mut self) -> Result<(), TraceError>
fn process(&mut self) -> Result<(), TraceError>
This is blocking and starts triggerring the callbacks. Read more
source§fn process_from_handle(handle: TraceHandle) -> Result<(), TraceError>
fn process_from_handle(handle: TraceHandle) -> Result<(), TraceError>
Process a trace given its handle. Read more