[−][src]Struct gdbstub::ConsoleOutput
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,