pub struct SerialPort { /* private fields */ }Expand description
A serial port backed by a file descriptor.
Implementations§
Source§impl SerialPort
impl SerialPort
Sourcepub fn open(config: &SerialConfig) -> Result<Self>
pub fn open(config: &SerialConfig) -> Result<Self>
Open and configure a serial port.
Trait Implementations§
Source§impl AsRawFd for SerialPort
impl AsRawFd for SerialPort
Auto Trait Implementations§
impl Freeze for SerialPort
impl RefUnwindSafe for SerialPort
impl Send for SerialPort
impl Sync for SerialPort
impl Unpin for SerialPort
impl UnwindSafe for SerialPort
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more