1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Core library for [rtcom](https://github.com/TrekMax/rtcom) — Rust Terminal Communication.
//!
//! At v0.1 this crate provides:
//!
//! - [`SerialDevice`] — async serial-port abstraction (Issue #2).
//! - [`SerialPortDevice`] — default backend built on [`tokio_serial`].
//! - [`SerialConfig`] and companion enums — the framing and flow parameters.
//! - [`Event`] and [`EventBus`] — cross-task event hub (Issue #5).
//! - [`Session`] — the orchestrator that drives serial I/O against the bus.
//! - [`Error`] / [`Result`] — the crate-wide error type.
//!
//! Later issues layer the event bus, session orchestrator, mappers, and
//! command state machine on top of this foundation. See `CLAUDE.md` §7 for
//! the full v0.1 plan.
//!
//! # Example
//!
//! ```no_run
//! use rtcom_core::{SerialConfig, SerialDevice, SerialPortDevice};
//! use tokio::io::AsyncWriteExt;
//!
//! # async fn run() -> rtcom_core::Result<()> {
//! let mut port = SerialPortDevice::open("/dev/ttyUSB0", SerialConfig::default())?;
//! port.write_all(b"hello\r\n").await?;
//! # Ok(()) }
//! ```
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use UucpLock;
pub use ;
pub use Session;