serial_service: Prep work for byte stream support
authorSven Rademakers <sven.rademakers@gmail.com>
Thu, 21 Dec 2023 10:40:12 +0000 (10:40 +0000)
committerSven Rademakers <sven.rademakers@gmail.com>
Tue, 23 Jan 2024 09:44:49 +0000 (09:44 +0000)
commit5ddad02f47e367abc2771f38d8193004d93147f0
treed6e2374cbc3d3fe9cd5b509d6359f79621a482f2
parent59da97396c4aea8ed6551989000e45bfd2ac568f
serial_service: Prep work for byte stream support

This commit aims to refactor the serial_service component. The
functionality stays the same, therefore no changes in the external API as well.

An additional hook is added in the serial handler that will be used in
subsequent commits to implement a byte stream object with.

Implemented the `open_channel()` function which was marked as `todo!()`.
This channel is a asynchronous bi-directional bytes transport. Purposed
to handle the communication to the various Nodes on the TuringPi board.
14 files changed:
Cargo.lock
Cargo.toml
src/api.rs
src/api/into_legacy_response.rs
src/api/legacy.rs
src/app/bmc_application.rs
src/hal.rs
src/hal/serial.rs [deleted file]
src/hal/stub/serial.rs [deleted file]
src/main.rs
src/serial_service.rs [new file with mode: 0644]
src/serial_service/serial.rs [new file with mode: 0644]
src/serial_service/serial_handler.rs [new file with mode: 0644]
src/streaming_data_service/transfer_context.rs