[][src]Struct gdbstub::ConsoleOutput

pub struct ConsoleOutput<'a> { /* fields omitted */ }

Helper struct to send console output to GDB.

The recommended way to interact with ConsoleOutput is through the provided output! / outputln! macros.

On resource constrained systems which might want to avoid using Rust's fairly "heavy" formatting machinery, the write_raw() method can be used to write raw data directly to the GDB console.

When the alloc feature is disabled, all output buffering is disabled, and each call to output! will automatically flush data over the Connection.

Implementations

impl<'a> ConsoleOutput<'a>[src]

pub fn write_raw(&mut self, bytes: &[u8])[src]

Write raw (non UTF-8) data to the GDB console.

pub fn flush(&mut self)[src]

Flush the internal output buffer.

Only available when alloc is enabled.

Trait Implementations

impl<'_> Drop for ConsoleOutput<'_>[src]

impl<'a> Write for ConsoleOutput<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for ConsoleOutput<'a>

impl<'a> !Send for ConsoleOutput<'a>

impl<'a> !Sync for ConsoleOutput<'a>

impl<'a> Unpin for ConsoleOutput<'a>

impl<'a> !UnwindSafe for ConsoleOutput<'a>

Blanket Implementations

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

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

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

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.