//! Miscellaneous functions for opening serial ports.
use Cow;
use Result;
pub use ;
use crateBaudRate;
/// The native serial port on Unix.
pub type NativeSerialPort = TTYPort;
/// The native serial port on Windows.
pub type NativeSerialPort = COMPort;
/// Opens a serial port depending on the local operating system.
///
/// # Errors
///
/// For errors please refer to [`SerialPortBuilder::open_native()`](serialport::SerialPortBuilder::open_native())
/// and [`serialport::new()`].