Function serve_processargs::add_to_processargs
source · pub fn add_to_processargs(
scope: ExecutionScope,
dict: Dict,
processargs: &mut ProcessArgs,
delivery_map: &DeliveryMap,
not_found: UnboundedSender<String>
) -> Result<(), DeliveryError>
Expand description
Visits dict
and installs its capabilities into appropriate locations in the
processargs
, as determined by a delivery_map
.
If the process opens non-existent paths within one of the namespace entries served
by the framework, that path will be sent down not_found
. Callers should either monitor
the stream, or drop the receiver, to prevent unbounded buffering.
On success, returns a future that services the namespace.