Struct ferrous_serialport::SerialPortBuilder [−][src]
pub struct SerialPortBuilder { /* fields omitted */ }
A struct containing all serial port settings
Implementations
impl SerialPortBuilder
[src]
impl SerialPortBuilder
[src]pub fn path<'a>(self, path: impl Into<Cow<'a, str>>) -> Self
[src]
Set the path to the serial port
pub fn baud_rate(self, baud_rate: u32) -> Self
[src]
Set the baud rate in symbols-per-second
pub fn data_bits(self, data_bits: DataBits) -> Self
[src]
Set the number of bits used to represent a character sent on the line
pub fn flow_control(self, flow_control: FlowControl) -> Self
[src]
Set the type of signalling to use for controlling data transfer
pub fn parity(self, parity: Parity) -> Self
[src]
Set the type of parity to use for error checking
pub fn stop_bits(self, stop_bits: StopBits) -> Self
[src]
Set the number of bits to use to signal the end of a character
pub fn timeout(self, timeout: Duration) -> Self
[src]
Set the amount of time to wait to receive data before timing out
pub fn open(self) -> Result<Box<dyn SerialPort>>
[src]
Open a cross-platform interface to the port with the specified settings
pub fn open_native(self) -> Result<TTYPort>
[src]
Open a platform-specific interface to the port with the specified settings
Trait Implementations
impl Clone for SerialPortBuilder
[src]
impl Clone for SerialPortBuilder
[src]fn clone(&self) -> SerialPortBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for SerialPortBuilder
[src]
impl Eq for SerialPortBuilder
[src]impl PartialEq<SerialPortBuilder> for SerialPortBuilder
[src]
impl PartialEq<SerialPortBuilder> for SerialPortBuilder
[src]fn eq(&self, other: &SerialPortBuilder) -> bool
[src]
fn ne(&self, other: &SerialPortBuilder) -> bool
[src]
impl StructuralEq for SerialPortBuilder
[src]
impl StructuralEq for SerialPortBuilder
[src]Auto Trait Implementations
impl RefUnwindSafe for SerialPortBuilder
impl RefUnwindSafe for SerialPortBuilder
impl Send for SerialPortBuilder
impl Send for SerialPortBuilder
impl Sync for SerialPortBuilder
impl Sync for SerialPortBuilder
impl Unpin for SerialPortBuilder
impl Unpin for SerialPortBuilder
impl UnwindSafe for SerialPortBuilder
impl UnwindSafe for SerialPortBuilder