Struct gdbstub::stub::GdbStubBuilder
source · [−]pub struct GdbStubBuilder<'a, T: Target, C: Connection> { /* private fields */ }
Expand description
Helper to construct and customize GdbStub
.
Implementations
Create a new GdbStubBuilder
using the provided Connection.
Use a pre-allocated packet buffer (instead of heap-allocating).
Note: This method is required when the alloc
feature is disabled!
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.
Build the GdbStub, returning an error if something went wrong.