libdd-crashtracker 1.0.0

Detects program crashes and reports them to datadog backend.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2024-Present Datadog, Inc. https://www.datadoghq.com/
// SPDX-License-Identifier: Apache-2.0
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub struct ProcInfo {
    pub pid: u32,
}

#[cfg(test)]
impl super::test_utils::TestInstance for ProcInfo {
    fn test_instance(seed: u64) -> Self {
        Self { pid: seed as u32 }
    }
}