pub struct SerialPortIo(pub Arc<Mutex<Box<dyn SerialPort>>>);Tuple Fields§
§0: Arc<Mutex<Box<dyn SerialPort>>>Trait Implementations§
Source§impl CmuxPhysicalIo for SerialPortIo
impl CmuxPhysicalIo for SerialPortIo
Source§fn write_all(&self, data: &[u8]) -> Result<(), String>
fn write_all(&self, data: &[u8]) -> Result<(), String>
Writes with a timeout from the wire time ([write_timeout]), then puts the
port’s own timeout back.
Source§fn write_timeout(&self, len: usize) -> Duration
fn write_timeout(&self, len: usize) -> Duration
How long a write of
len bytes may take; also how long a channel write waits
out flow control (FCoff, MSC FC) before it fails. Default 1 s.Auto Trait Implementations§
impl Forget for SerialPortIo
impl Freeze for SerialPortIo
impl Move for SerialPortIo
impl RefUnwindSafe for SerialPortIo
impl Send for SerialPortIo
impl Sync for SerialPortIo
impl Unpin for SerialPortIo
impl UnsafeUnpin for SerialPortIo
impl UnwindSafe for SerialPortIo
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