struct CrashDumpHandler {
dump_dir: PathBuf,
crash_pid: AtomicU32,
}Fields§
§dump_dir: PathBuf§crash_pid: AtomicU32PID of the crashing process, set by on_message before create_minidump_file is called.
The client sends MSG_KIND_CRASH_PID just before request_dump so the PID is available
when the server needs to name the file.
Trait Implementations§
Source§impl ServerHandler for CrashDumpHandler
impl ServerHandler for CrashDumpHandler
Source§fn create_minidump_file(&self) -> Result<(File, PathBuf), Error>
fn create_minidump_file(&self) -> Result<(File, PathBuf), Error>
Called when a crash request has been received and a backing file needs
to be created to store it.
Source§fn on_minidump_created(
&self,
result: Result<MinidumpBinary, Error>,
) -> LoopAction
fn on_minidump_created( &self, result: Result<MinidumpBinary, Error>, ) -> LoopAction
Called when a crash has been fully written as a minidump to the provided
file. Also returns the full heap buffer as well. Read more
Source§fn on_message(&self, kind: u32, buffer: Vec<u8>)
fn on_message(&self, kind: u32, buffer: Vec<u8>)
Called when the client sends a user message sent from the client with
send_messageSource§fn on_client_disconnected(&self, num_clients: usize) -> LoopAction
fn on_client_disconnected(&self, num_clients: usize) -> LoopAction
Called when a client has disconnected from the Server, with the number
of currently active client connections.
§fn message_alloc(&self) -> Vec<u8> ⓘ
fn message_alloc(&self) -> Vec<u8> ⓘ
Optional allocation function for the buffer used to store a message. Read more
§fn on_client_connected(&self, _num_clients: usize) -> LoopAction
fn on_client_connected(&self, _num_clients: usize) -> LoopAction
Called when a new client connection has been established with the Server,
with the number of currently active client connections.
Auto Trait Implementations§
impl !Freeze for CrashDumpHandler
impl RefUnwindSafe for CrashDumpHandler
impl Send for CrashDumpHandler
impl Sync for CrashDumpHandler
impl Unpin for CrashDumpHandler
impl UnwindSafe for CrashDumpHandler
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.