pub struct MinidumpWriter {
Show 13 fields pub process_id: Pid, pub blamed_thread: Pid, pub minidump_size_limit: Option<u64>, pub skip_stacks_if_mapping_unreferenced: bool, pub principal_mapping_address: Option<usize>, pub user_mapping_list: MappingList, pub app_memory: AppMemoryList, pub memory_blocks: Vec<MDMemoryDescriptor>, pub principal_mapping: Option<MappingInfo>, pub sanitize_stack: bool, pub crash_context: Option<CrashContext>, pub crashing_thread_context: CrashingThreadContext, pub stop_timeout: Duration,
}

Fields§

§process_id: Pid§blamed_thread: Pid§minidump_size_limit: Option<u64>§skip_stacks_if_mapping_unreferenced: bool§principal_mapping_address: Option<usize>§user_mapping_list: MappingList§app_memory: AppMemoryList§memory_blocks: Vec<MDMemoryDescriptor>§principal_mapping: Option<MappingInfo>§sanitize_stack: bool§crash_context: Option<CrashContext>§crashing_thread_context: CrashingThreadContext§stop_timeout: Duration

Implementations§

source§

impl MinidumpWriter

source

pub fn new(process: Pid, blamed_thread: Pid) -> Self

source

pub fn set_minidump_size_limit(&mut self, limit: u64) -> &mut Self

source

pub fn set_user_mapping_list( &mut self, user_mapping_list: MappingList ) -> &mut Self

source

pub fn set_principal_mapping_address( &mut self, principal_mapping_address: usize ) -> &mut Self

source

pub fn set_app_memory(&mut self, app_memory: AppMemoryList) -> &mut Self

source

pub fn set_crash_context(&mut self, crash_context: CrashContext) -> &mut Self

source

pub fn skip_stacks_if_mapping_unreferenced(&mut self) -> &mut Self

source

pub fn sanitize_stack(&mut self) -> &mut Self

source

pub fn stop_timeout(&mut self, duration: Duration) -> &mut Self

Sets the timeout after SIGSTOP is sent to the process, if the process has not stopped by the time the timeout has reached, we proceed with minidump generation

source

pub fn dump( &mut self, destination: &mut (impl Write + Seek) ) -> Result<Vec<u8>, WriterError>

Generates a minidump and writes to the destination provided. Returns the in-memory version of the minidump as well.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

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

Performs the conversion.