[][src]Struct gdb_protocol::io::GdbServer

pub struct GdbServer<R, W> where
    R: BufRead,
    W: Write
{ pub reader: R, pub writer: W, // some fields omitted }

Fields

reader: Rwriter: W

Methods

impl GdbServer<BufReader<TcpStream>, TcpStream>[src]

pub fn listen<A>(addr: A) -> Result<Self, Error> where
    A: ToSocketAddrs
[src]

impl<'a> GdbServer<&'a mut &'a [u8], Vec<u8>>[src]

pub fn tester(input: &'a mut &'a [u8]) -> Self[src]

pub fn response(&mut self) -> Vec<u8>[src]

impl<R, W> GdbServer<R, W> where
    R: BufRead,
    W: Write
[src]

pub fn new(reader: R, writer: W) -> Self[src]

pub fn next_packet(&mut self) -> Result<Option<CheckedPacket>, Error>[src]

pub fn dispatch(&mut self, packet: &CheckedPacket) -> Result<(), Error>[src]

Sends a packet, retrying upon any failed checksum verification on the remote.

Auto Trait Implementations

impl<R, W> Unpin for GdbServer<R, W> where
    R: Unpin,
    W: Unpin

impl<R, W> Send for GdbServer<R, W> where
    R: Send,
    W: Send

impl<R, W> Sync for GdbServer<R, W> where
    R: Sync,
    W: Sync

impl<R, W> RefUnwindSafe for GdbServer<R, W> where
    R: RefUnwindSafe,
    W: RefUnwindSafe

impl<R, W> UnwindSafe for GdbServer<R, W> where
    R: UnwindSafe,
    W: UnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]