pub struct CoreDumpBuilder<'a, P: ProcessInfoSource, M: ReadProcessMemory> { /* private fields */ }Expand description
A builder for generating a core dump of a process optionally with custom notes with content from files This also supports generating core dumps with information from a custom source.
Implementations§
Source§impl<'a> CoreDumpBuilder<'a, ProcessView, LinuxProcessMemoryReader>
impl<'a> CoreDumpBuilder<'a, ProcessView, LinuxProcessMemoryReader>
Sourcepub fn new(
pid: pid_t,
) -> Result<CoreDumpBuilder<'a, ProcessView, LinuxProcessMemoryReader>, CoreError>
pub fn new( pid: pid_t, ) -> Result<CoreDumpBuilder<'a, ProcessView, LinuxProcessMemoryReader>, CoreError>
Create a new core dump builder for the process with the provided PID
Source§impl<'a, P: ProcessInfoSource, M: ReadProcessMemory> CoreDumpBuilder<'a, P, M>
impl<'a, P: ProcessInfoSource, M: ReadProcessMemory> CoreDumpBuilder<'a, P, M>
Sourcepub fn from_source(source: P, memory_reader: M) -> CoreDumpBuilder<'a, P, M>
pub fn from_source(source: P, memory_reader: M) -> CoreDumpBuilder<'a, P, M>
Create a new core dump builder from a custom ProcessInfoSource
Sourcepub fn add_custom_file_note(
&mut self,
name: &str,
file: &'a mut dyn Read,
note_len: usize,
) -> &mut Self
pub fn add_custom_file_note( &mut self, name: &str, file: &'a mut dyn Read, note_len: usize, ) -> &mut Self
Add the contents of a file as a custom note to the core dump
Auto Trait Implementations§
impl<'a, P, M> Freeze for CoreDumpBuilder<'a, P, M>
impl<'a, P, M> !RefUnwindSafe for CoreDumpBuilder<'a, P, M>
impl<'a, P, M> !Send for CoreDumpBuilder<'a, P, M>
impl<'a, P, M> !Sync for CoreDumpBuilder<'a, P, M>
impl<'a, P, M> Unpin for CoreDumpBuilder<'a, P, M>
impl<'a, P, M> UnsafeUnpin for CoreDumpBuilder<'a, P, M>where
P: UnsafeUnpin,
M: UnsafeUnpin,
impl<'a, P, M> !UnwindSafe for CoreDumpBuilder<'a, P, M>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more