torrust-tracker 3.0.0

A feature rich BitTorrent tracker.
Documentation
//! Axum [`handlers`](axum#handlers) for the HTTP server.
//!
//! Refer to the generic [HTTP server documentation](crate::servers::http) for
//! more information about the HTTP tracker.
use super::responses;
use crate::core::error::Error;

pub mod announce;
pub mod common;
pub mod health_check;
pub mod scrape;

impl From<Error> for responses::error::Error {
    fn from(err: Error) -> Self {
        responses::error::Error {
            failure_reason: format!("Tracker error: {err}"),
        }
    }
}