Function pimsync::config::take_single_directive

source ·
fn take_single_directive(
    config: &mut Scfg,
    name: &str,
) -> Result<Option<Directive>>
Expand description

Take a directive expecting it at most once.

§Errors

If the directive is defined more than once.