Skip to main content

os_guard

Function os_guard 

Source
pub(crate) fn os_guard(
    text: &str,
    allow: impl FnOnce() -> bool,
) -> Result<ParsedLink, Refusal>
Expand description

What the operating system’s open of text may show, by the rules above, or why it is refused. allow is the rate limit, so a test can give its own.