Skip to main content

frame_allowed

Function frame_allowed 

Source
pub(super) fn frame_allowed(
    store: &Store,
    msg_type: &str,
    registered: &str,
    (agent_id, token, from): (Option<&str>, Option<&str>, Option<&str>),
) -> Result<(), String>
Expand description

Whether a bus:* frame may be acted on: a bus:register is proven by its token, a send, inject or broadcast by the registration; other frames claim nothing.