rust_asio 0.6.0

Asynchronous I/O library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::io;

pub trait SerialPortOption : Sized {
    fn load(target: &SerialPort) -> Self;

    fn store(self, target: &mut SerialPort) -> io::Result<()>;
}

#[cfg(feature = "termios")] mod termios;
#[cfg(feature = "termios")] pub use self::termios::SerialPort;

#[cfg(target_os = "linux")] mod linux;
#[cfg(target_os = "linux")] pub use self::linux::{BaudRate, Parity, CSize, FlowControl, StopBits};

#[cfg(target_os = "macos")] mod macos;
#[cfg(target_os = "macos")] pub use self::macos::{BaudRate, Parity, CSize, FlowControl, StopBits};