Skip to main content

next_alert_deadline

Function next_alert_deadline 

Source
pub fn next_alert_deadline(
    input: FfiNotifyInput,
    now: String,
) -> Result<Option<String>, FfiError>
Expand description

The earliest instant in pre_arm_deadlines (RFC 3339), or None when there is nothing to arm.

For a host that can hold only one timer. An app that schedules per class wants pre_arm_deadlines: the minimum discards the later class’s alarm, and on a device the app never runs on again that alert is simply lost.

§Errors

As evaluate_alerts.