pub struct DispatchedCall { /* private fields */ }Expand description
ONE-6: one call as dispatched — its literal address and the grant that
address dispatches to, as one value. The door
(Gate::check_everywhere_at) takes this and nothing else, and decides
its grant: an address scope covering the address admits that grant only.
The dispatcher builds it once, at dispatch, from the routed entry:
the address from the path it routed, the grant from the same entry (the
method’s own, a schema-named one, or a slot’s such as dyn.{peer}). The
gate never compares the two as strings — a grant’s name may differ from
its path.
A check inside a call — a method’s own required(…), a seam asking
the gate, a store’s per-aspect check, any second grant — is asked with
Gate::check / Gate::check_everywhere, told no address: an address
scope holds nothing there. Only the reach the door gave carries its
address, and only for its own grant (Reach::current re-asks with
both; Reach::allows answers data, which an address never holds).
Implementations§
Source§impl DispatchedCall
impl DispatchedCall
Sourcepub fn new(at: CallAddress, grant: Grant) -> Self
pub fn new(at: CallAddress, grant: Grant) -> Self
The call at at, which dispatches to grant.
Sourcepub fn at(&self) -> &CallAddress
pub fn at(&self) -> &CallAddress
Its address.