pub struct Generations { /* private fields */ }Expand description
Generation provider: maps source name → current generation token, with a 1s memo so repeated cache-key composition is cheap.
Implementations§
Source§impl Generations
impl Generations
Sourcepub fn empty() -> Self
pub fn empty() -> Self
Empty provider — every source resolves to the placeholder token. Used
when no mesofact.config.toml is configured.
Sourcepub fn from_config_str(toml_str: &str) -> Result<Self, Error>
pub fn from_config_str(toml_str: &str) -> Result<Self, Error>
Parse [sources.*] from a mesofact.config.toml string.
Sourcepub fn from_config_file(path: &Path) -> Result<Self>
pub fn from_config_file(path: &Path) -> Result<Self>
Load from a config file path. A missing file yields an empty provider — a project with no scoped sources legitimately ships no config.
Auto Trait Implementations§
impl !Freeze for Generations
impl RefUnwindSafe for Generations
impl Send for Generations
impl Sync for Generations
impl Unpin for Generations
impl UnsafeUnpin for Generations
impl UnwindSafe for Generations
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more