frame-picker 0.1.0

FramePicker is a Rust library for handling network frame data, designed to solve problems similar to TCP/UART packet sticking.
Documentation
  • Coverage
  • 68.42%
    13 out of 19 items documented0 out of 15 items with examples
  • Size
  • Source code size: 11.76 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.7 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • cumthugo/frame-picker
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • cumthugo

FramePicker

FramePicker is a Rust library for handling network frame data, designed to solve problems similar to TCP/UART packet sticking.

Features

  • Provides a FramePicker structure for storing and processing network frame data.
  • Provides a FrameMeta trait for defining the metadata of network frames.

Usage

First, define a type that implements the FrameMeta trait. Then, create a FramePicker instance and use it to process network frame data.

let mut picker = FramePicker::<500, Iap2FrameMeta>::new();
let data = [0xff, 0x5a, 0x00, 0x0a, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a];
picker.feed_data(&data).unwrap();
assert!(picker.contain_frame());
assert!(picker.frame_complete());

Testing

Use the cargo test command to run test cases.

Contribution

PRs and issues are welcome.

License

MIT