Skip to main content

fetch

Function fetch 

Source
pub fn fetch(
    engine: &Engine,
    from: &[String],
    digest: &str,
    output: &Path,
    trusted: &[String],
    force: bool,
    max_bytes: u64,
    timeout: Duration,
) -> Result<Value>
Expand description

Fetch the vocabulary with this digest from the first of the registries that gives it and passes every check, and write it. The registries are asked in the order given; one that fails, lies or does not have it costs its share of the time and nothing else.