Skip to main content

context_pull

Function context_pull 

Source
pub fn context_pull(args: &PullArgs) -> DispatchOutcome
Expand description

membrane context pull: print the context for a task, or nothing when there is none. With --wire and --request-id the context is also recorded as a receipt the caller can later mark delivered.

What is printed is the one projection hook::project_pull_answer makes of the answer in its delivery mode (the bare context and a newline, or with --json the whole membrane.context.pull.v1 document, receipt included). The resident or the in-process pull selected a representation whose complete projection fits the declared budget; here the answer is re-projected and proved to be that response (hook::verify_pull_projection) before anything is recorded or printed, and the approved bytes are printed as they are.