Trait gdbstub::conn::ConnectionExt
source · [−]pub trait ConnectionExt: Connection {
fn read(&mut self) -> Result<u8, Self::Error>;
fn peek(&mut self) -> Result<Option<u8>, Self::Error>;
}
Expand description
Extends Connection
with read
and peek
methods.
This trait is used as part of gdbstub
’s quickstart
GdbStub::run_blocking
API.
When the std
feature is enabled, this trait is automatically implemented
for TcpStream
and
UnixStream
(on unix systems).