Skip to main content

evaluate_alerts

Function evaluate_alerts 

Source
pub fn evaluate_alerts(
    input: FfiNotifyInput,
    now: String,
) -> Result<Vec<FfiAlert>, FfiError>
Expand description

Every alert that is true at now, in delivery order.

Pure and offline: no network call, no library open, no clock read — now is the caller’s, so the same input always gives the same answer and an app can drive it from a test clock.

§Errors

FfiError::InvalidArgument if now or any instant in input is not RFC 3339, or if suppressed_until names something that is not an alert class.