[][src]Enum gdbstub::GdbStubError

#[non_exhaustive]pub enum GdbStubError<T, C> {
    ConnectionRead(C),
    ConnectionWrite(ResponseWriterError<C>),
    ClientSentNack,
    MissingPacketBuffer,
    PacketBufferOverlow,
    PacketParse(PacketParseError),
    PacketUnexpected,
    TargetMismatch,
    TargetError(T),
    NoActiveThreads,
    ResumeWithSignalUnimplemented,
    // some variants omitted
}

An error which may occur during a GDB debugging session.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ConnectionRead(C)

Connection Error while reading request.

ConnectionWrite(ResponseWriterError<C>)

Connection Error while writing response.

ClientSentNack

Client nack'd the last packet, but gdbstub doesn't implement re-transmission.

MissingPacketBuffer

GdbStub was not provided with a packet buffer in no_std mode (missing call to with_packet_buffer)

PacketBufferOverlow

Packet cannot fit in the provided packet buffer.

PacketParse(PacketParseError)

Could not parse the packet into a valid command.

PacketUnexpected

GDB client sent an unexpected packet.

TargetMismatch

GDB client sent a packet with too much data for the given target.

TargetError(T)

Target threw a fatal error.

NoActiveThreads

Target didn't report any active threads.

ResumeWithSignalUnimplemented

Resuming with a signal is not implemented yet. Consider opening a PR?

Trait Implementations

impl<T: Debug, C: Debug> Debug for GdbStubError<T, C>[src]

impl<T, C> Display for GdbStubError<T, C> where
    C: Debug,
    T: Debug
[src]

impl<T, C> Error for GdbStubError<T, C> where
    C: Debug,
    T: Debug
[src]

Auto Trait Implementations

impl<T, C> RefUnwindSafe for GdbStubError<T, C> where
    C: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, C> Send for GdbStubError<T, C> where
    C: Send,
    T: Send

impl<T, C> Sync for GdbStubError<T, C> where
    C: Sync,
    T: Sync

impl<T, C> Unpin for GdbStubError<T, C> where
    C: Unpin,
    T: Unpin

impl<T, C> UnwindSafe for GdbStubError<T, C> where
    C: UnwindSafe,
    T: UnwindSafe

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> ToString for T where
    T: Display + ?Sized
[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.