Trait ConnectionExt
Source pub trait ConnectionExt: Connection {
// Required methods
fn read(&mut self) -> Result<u8, Self::Error>;
fn peek(&mut self) -> Result<Option<u8>, Self::Error>;
}
Expand description
Peek a single byte. This MUST be a non-blocking operation, returning
None
if no byte is available.
Returns a byte (if one is available) without removing that byte from the
queue. Subsequent calls to peek
MUST return the same byte.
Transport-specific error type.
Write a single byte.
Write the entire buffer, blocking until complete.
Read more
Flush this Connection, ensuring that all intermediately buffered
contents reach their destination.
Read more
Called at the start of a debugging session
before any GDB packets have
been sent/received.
Read more
Transport-specific error type.
Write a single byte.
Write the entire buffer, blocking until complete.
Read more
Flush this Connection, ensuring that all intermediately buffered
contents reach their destination.
Read more
Called at the start of a debugging session
before any GDB packets have
been sent/received.
Read more
Read a single byte.
Peek a single byte. This MUST be a
non-blocking operation, returning
None
if no byte is available.
Read more
Read a single byte.
Peek a single byte. This MUST be a
non-blocking operation, returning
None
if no byte is available.
Read more