//! Convenience integration with the [`serialport`] crate.
//!
//! [`serialport::SerialPort`] already implements [`std::io::Read`] +
//! [`std::io::Write`], so the [blocking adapter](crate::adapters::blocking)
//! works on it directly. This module provides a tiny `open` helper that
//! configures sensible defaults for talking to Marlin in binary mode.
use Duration;
use ;
/// Open a serial port with defaults suitable for Marlin BFT:
///
/// - 8N1
/// - read timeout 100 ms (so the host can pump retransmits without
/// hanging in `read`)
/// - DTR/RTS not asserted explicitly — the OS-default behaviour applies
/// Return a [`SerialPortBuilder`] preconfigured with the same defaults
/// as [`open`], but unopened, so the caller can apply further tweaks
/// before calling `.open()`.