Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

Support iterator over Record #4

@keiichiw

Description

@keiichiw

To iterate over Records in a given Input, the current supported way is implementing the Handler and call Handler::process, which is a wrapper of tracecmd_iterate_events().

To support more flexible handling, it'd be nice to support Iterator whose Item is Record.

let input = Input::new(...)?;
for event in input.to_iter() {
  // process event
}

Its next() should be able to be implemented by wrapping tracecmd_read_data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions