Struct minidump::format::CONTEXT_X86[][src]

pub struct CONTEXT_X86 {
Show fields pub context_flags: u32, pub dr0: u32, pub dr1: u32, pub dr2: u32, pub dr3: u32, pub dr6: u32, pub dr7: u32, pub float_save: FLOATING_SAVE_AREA_X86, pub gs: u32, pub fs: u32, pub es: u32, pub ds: u32, pub edi: u32, pub esi: u32, pub ebx: u32, pub edx: u32, pub ecx: u32, pub eax: u32, pub ebp: u32, pub eip: u32, pub cs: u32, pub eflags: u32, pub esp: u32, pub ss: u32, pub extended_registers: [u8; 512],
}
Expand description

An x86 CPU context

This struct matches the definition of CONTEXT in WinNT.h for x86.

Fields

context_flags: u32dr0: u32dr1: u32dr2: u32dr3: u32dr6: u32dr7: u32float_save: FLOATING_SAVE_AREA_X86gs: u32fs: u32es: u32ds: u32edi: u32esi: u32ebx: u32edx: u32ecx: u32eax: u32ebp: u32eip: u32cs: u32eflags: u32esp: u32ss: u32extended_registers: [u8; 512]

Trait Implementations

impl Clone for CONTEXT_X86[src]

pub fn clone(&self) -> CONTEXT_X86[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl CpuContext for CONTEXT_X86[src]

type Register = u32

The word size of general-purpose registers in the context.

fn get_register_always(&self, reg: &str) -> u32[src]

Get a register value regardless of whether it is valid.

fn set_register(&mut self, reg: &str, val: Self::Register) -> Option<()>[src]

Set a register value, if that register name it exists. Read more

fn memoize_register(&self, reg: &str) -> Option<&'static str>[src]

Gets a static version of the given register name, if possible.

fn stack_pointer_register_name(&self) -> &'static str[src]

Gets the name of the stack pointer register (for use with get_register/set_register).

fn instruction_pointer_register_name(&self) -> &'static str[src]

Gets the name of the instruction pointer register (for use with get_register/set_register).

fn get_register(
    &self,
    reg: &str,
    valid: &MinidumpContextValidity
) -> Option<Self::Register>
[src]

Get a register value if it is valid. Read more

fn format_register(&self, reg: &str) -> String[src]

Return a String containing the value of reg formatted to its natural width.

impl Debug for CONTEXT_X86[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl Default for CONTEXT_X86[src]

pub fn default() -> CONTEXT_X86[src]

Return CONTEXT_X86 { context_flags: Default::default(), dr0: Default::default(), dr1: Default::default(), dr2: Default::default(), dr3: Default::default(), dr6: Default::default(), dr7: Default::default(), float_save: Default::default(), gs: Default::default(), fs: Default::default(), es: Default::default(), ds: Default::default(), edi: Default::default(), esi: Default::default(), ebx: Default::default(), edx: Default::default(), ecx: Default::default(), eax: Default::default(), ebp: Default::default(), eip: Default::default(), cs: Default::default(), eflags: Default::default(), esp: Default::default(), ss: Default::default(), extended_registers: [0 ; 512] }

impl SizeWith<Endian> for CONTEXT_X86[src]

pub fn size_with(ctx: &Endian) -> usize[src]

impl<'a> TryFromCtx<'a, Endian, [u8]> for CONTEXT_X86 where
    CONTEXT_X86: 'a, 
[src]

type Error = Error

pub fn try_from_ctx(
    src: &'a [u8],
    ctx: Endian
) -> Result<(CONTEXT_X86, usize), <CONTEXT_X86 as TryFromCtx<'a, Endian, [u8]>>::Error>
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.