[−][src]Struct gdbstub::GdbStubBuilder
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,
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, C> Send for GdbStubBuilder<'a, T, C> where
C: Send,
T: Send,
C: Send,
T: Send,
impl<'a, T, C> Sync for GdbStubBuilder<'a, T, C> where
C: Sync,
T: Sync,
C: Sync,
T: Sync,
impl<'a, T, C> Unpin for GdbStubBuilder<'a, T, C> where
C: Unpin,
T: Unpin,
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]
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,
pub 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.
pub 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>,