pub struct ZSerial { /* private fields */ }
Implementations§
Source§impl ZSerial
impl ZSerial
pub fn new(port: String, baud_rate: u32, exclusive: bool) -> Result<Self>
pub fn close(&mut self)
pub async fn accept(&mut self) -> Result<()>
pub async fn connect(&mut self, tout: Option<Duration>) -> Result<()>
pub async fn dump(&mut self) -> Result<()>
pub async fn read_msg(&mut self, buff: &mut [u8]) -> Result<usize>
pub async fn write(&mut self, buff: &[u8]) -> Result<()>
pub fn bytes_to_read(&self) -> Result<u32>
pub fn clear(&self) -> Result<()>
Auto Trait Implementations§
impl Freeze for ZSerial
impl !RefUnwindSafe for ZSerial
impl Send for ZSerial
impl Sync for ZSerial
impl Unpin for ZSerial
impl !UnwindSafe for ZSerial
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