pub struct Interface { /* private fields */ }Implementations§
Source§impl Interface
impl Interface
pub fn new(info: SerialPortInfo) -> Self
pub fn new_with(port: Box<SerialStream>, name: Option<String>) -> Self
pub fn info(&self) -> &SerialPortInfo
pub fn is_open(&self) -> bool
pub fn set_port(&mut self, port: Box<SerialStream>)
pub fn open(&mut self) -> Result<(), Error>
pub fn close(&mut self)
Trait Implementations§
impl In for Interface
impl In for Interface
impl Send for Interface
impl Sync for Interface
Auto Trait Implementations§
impl !Freeze for Interface
impl !RefUnwindSafe for Interface
impl Unpin for Interface
impl !UnwindSafe for Interface
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