Skip to main content

gate_block

Function gate_block 

Source
pub fn gate_block(
    statements: &[String],
    policy: &Policy,
) -> Result<(Vec<Gated>, Vec<Gap>)>
Expand description

Admits every statement of a block and declares the ones that escape it.

The escape is declared before the block opens, so the caller reads which part of the promise the server will not keep even if the block itself never gets that far.

ยงErrors

Returns the refusal the first inadmissible statement earned.