[−][src]Struct serialport::SerialPortBuilder
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]
pub fn clone(&self) -> SerialPortBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SerialPortBuilder
[src]
impl Eq for SerialPortBuilder
[src]
impl PartialEq<SerialPortBuilder> for SerialPortBuilder
[src]
pub fn eq(&self, other: &SerialPortBuilder) -> bool
[src]
pub fn ne(&self, other: &SerialPortBuilder) -> bool
[src]
impl StructuralEq for SerialPortBuilder
[src]
impl StructuralPartialEq for SerialPortBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for SerialPortBuilder
[src]
impl Send for SerialPortBuilder
[src]
impl Sync for SerialPortBuilder
[src]
impl Unpin for SerialPortBuilder
[src]
impl UnwindSafe for SerialPortBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,