Skip to main content

current_binding

Function current_binding 

Source
pub(crate) fn current_binding(
    api: &str,
    auth: AuthOptions<'_>,
    actor_id: &str,
) -> Option<Value>
Expand description

The binding /api/view currently reports for actor_id, if any.

Best-effort by design: any failure to read returns None so the bind still goes out. Refusing to submit because a read failed would turn a reporting problem into an availability problem, and the node is the authority on whether a binding is admissible regardless of what this saw.