Skip to main content

FsyncConfigSource

Trait FsyncConfigSource 

Source
pub trait FsyncConfigSource {
    // Required method
    fn fsync_lookup(
        &self,
        section: &str,
        subsection: Option<&str>,
        key: &str,
    ) -> Option<&str>;
}
Expand description

Minimal read-only config lookup surface accepted by Policy::resolve.

Defined here — not as a concrete GitConfig parameter — because sley-config depends on this crate, not the other way around. The config crate implements this over GitConfig::get, so callers holding resolved configuration pass it directly to Policy::resolve.

Required Methods§

Source

fn fsync_lookup( &self, section: &str, subsection: Option<&str>, key: &str, ) -> Option<&str>

Last value of <section>.<subsection?>.<key> (case-normalized lookup), or None when unset.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§