Struct mstd::serial::SerialPort
source · pub struct SerialPort {
port: u16,
}
Fields§
§port: u16
Implementations§
source§impl SerialPort
impl SerialPort
pub async fn open(req_port: u16) -> Result<Self, SerialError>
Auto Trait Implementations§
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