pub struct TraceReader {
store: Arc<StoreContainer>,
path: PathBuf,
}Fields§
§store: Arc<StoreContainer>§path: PathBufImplementations§
Source§impl TraceReader
impl TraceReader
pub fn spawn(store: Arc<StoreContainer>, path: PathBuf) -> JoinHandle<()>
pub fn run(&mut self)
fn trace_file_from_file(&self, file: File) -> Result<TraceFile>
fn try_read(&mut self) -> bool
fn wait_for_more_data( &mut self, file: &mut TraceFile, initial_read: &mut Option<(u64, Instant)>, format: Option<&ErasedTraceFormat>, ) -> Option<bool>
fn wait_for_new_file(&self, file: &mut TraceFile)
Auto Trait Implementations§
impl Freeze for TraceReader
impl RefUnwindSafe for TraceReader
impl Send for TraceReader
impl Sync for TraceReader
impl Unpin for TraceReader
impl UnwindSafe for TraceReader
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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