Skip to main content

with_refusal

Function with_refusal 

Source
pub(super) fn with_refusal(
    body: Value,
    reason: WaitReason,
    until_ms: Option<u64>,
) -> Value
Expand description

body, the answer to a message refused (not kept) because the agent can’t take it now, with the reason as data: refused_reason (the held_reason strings), retry_when and, when known, until_ms. A sender reads these instead of the wording of error.