libdd-crashtracker 2.0.1

Detects program crashes and reports them to datadog backend.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// SPDX-License-Identifier: Apache-2.0
// Copyright 2023-Present Datadog, Inc. https://www.datadoghq.com/
#![cfg(unix)]

use std::time::Duration;
use tokio::io::AsyncBufReadExt;

pub async fn receiver_entry_point(
    timeout: Duration,
    stream: impl AsyncBufReadExt + std::marker::Unpin,
) -> anyhow::Result<()> {
    crate::receiver::entry_points::receiver_entry_point(timeout, stream).await
}