Skip to main content

ping_booking

Function ping_booking 

Source
pub fn ping_booking(
    usage_arrived: bool,
    sent: bool,
    connect_failed: bool,
    http_status: u16,
) -> PingBooking
Expand description

The one booking rule for a ping, on every path: usage arrived → its real cost; otherwise rejected with an HTTP error status (≥ 400) → $0; otherwise dispatched → the worst case, unless the error was a connect failure with no HTTP status; otherwise $0.