pub fn open_with_buffers(
		path: impl AsRef<Path>,
		baud_rate: u32,
		read_timeout: Duration,
		read_buffer: ReadBuffer,
		write_buffer: WriteBuffer,
	) -> std::io::Result<Self> {
		let port = SerialPort::open(path, baud_rate)?;
		Ok(Self::with_buffers(port, read_timeout, read_buffer, write_buffer))
	}
/// Open a serial port with the given baud rate.
///
/// This will allocate a new read and write buffer of 128 bytes each.
Open a serial port with the given baud rate.
This will allocate a new read and write buffer of 128 bytes each.
Open a serial port with the given baud rate . This will allocate a new read and write buffer of 128 bytes each .
pub fn open_with_buffers(
		path: impl AsRef<Path>,
		baud_rate: u32,
		read_timeout: Duration,
		read_buffer: ReadBuffer,
		write_buffer: WriteBuffer,
	) -> std::io::Result<Self> {
		let port = SerialPort::open(path, baud_rate)?;
		Ok(Self::with_buffers(port, read_timeout, read_buffer, write_buffer))
	}
pub fn open_with_buffers ( path : impl AsRef < Path > , baud_rate : u32 , read_timeout : Duration , read_buffer : ReadBuffer , write_buffer : WriteBuffer , ) -> std :: io :: Result < Self > { let port = SerialPort :: open ( path , baud_rate ) ? ; Ok ( Self :: with_buffers ( port , read_timeout , read_buffer , write_buffer ) ) }
Open a serial port with the given baud rate.
Open a serial port with the given baud rate .
path
impl AsRef<Path>
baud_rate
u32
read_timeout
Duration
read_buffer
ReadBuffer
write_buffer
WriteBuffer
path
impl AsRef<Path>
baud_rate
u32
read_timeout
Duration
read_buffer
ReadBuffer
write_buffer
WriteBuffer