pub trait SerialIo:
AsyncRead
+ AsyncWrite
+ Send
+ InspectMut
+ Unpin {
// Required methods
fn is_connected(&self) -> bool;
fn poll_connect(&mut self, cx: &mut Context<'_>) -> Poll<Result<()>>;
fn poll_disconnect(&mut self, cx: &mut Context<'_>) -> Poll<Result<()>>;
}
Expand description
Trait for types providing serial IO.
Required Methods§
Sourcefn is_connected(&self) -> bool
fn is_connected(&self) -> bool
Returns true if the backend is already connected.