[][src]Struct gdbstub::GdbStubBuilder

pub struct GdbStubBuilder<'a, T: Target, C: Connection> { /* fields omitted */ }

Helper to construct and customize GdbStub.

Implementations

impl<'a, T: Target, C: Connection> GdbStubBuilder<'a, T, C>[src]

pub fn new(conn: C) -> GdbStubBuilder<'static, T, C>[src]

Create a new GdbStubBuilder using the provided Connection.

pub fn with_packet_buffer(self, packet_buffer: &'a mut [u8]) -> Self[src]

Use a pre-allocated packet buffer (instead of heap-allocating).

Note: This method is required when the alloc feature is disabled!

pub fn packet_buffer_size(self, size: usize) -> Self[src]

Specify a custom size for the packet buffer. Defaults to 4096 bytes.

When used alongside with_packet_buffer, the provided size must be less than or equal to the length of the packet buffer.

pub fn build(self) -> Result<GdbStub<'a, T, C>, GdbStubBuilderError>[src]

Build the GdbStub, returning an error if something went wrong.

Auto Trait Implementations

impl<'a, T, C> RefUnwindSafe for GdbStubBuilder<'a, T, C> where
    C: RefUnwindSafe,
    T: RefUnwindSafe

impl<'a, T, C> Send for GdbStubBuilder<'a, T, C> where
    C: Send,
    T: Send

impl<'a, T, C> Sync for GdbStubBuilder<'a, T, C> where
    C: Sync,
    T: Sync

impl<'a, T, C> Unpin for GdbStubBuilder<'a, T, C> where
    C: Unpin,
    T: Unpin

impl<'a, T, C> !UnwindSafe for GdbStubBuilder<'a, T, C>

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.