Struct ferrous_serialport::SerialPortBuilder[][src]

pub struct SerialPortBuilder { /* fields omitted */ }

A struct containing all serial port settings

Implementations

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<COMPort>[src]

Open a platform-specific interface to the port with the specified settings

Trait Implementations

impl Clone for SerialPortBuilder[src]

impl Debug for SerialPortBuilder[src]

impl Eq for SerialPortBuilder[src]

impl PartialEq<SerialPortBuilder> for SerialPortBuilder[src]

impl StructuralEq for SerialPortBuilder[src]

impl StructuralPartialEq for SerialPortBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.