Skip to main content

BuilderFinalizer

Trait BuilderFinalizer 

Source
pub trait BuilderFinalizer {
    type Loader;
    type Error: Error;

    // Required method
    fn build_loader(self) -> Result<Self::Loader, Self::Error>;
}
Expand description

Consume a configured builder and produce a ready-to-use section loader.

Implemented by the real builder types in configbuilder-svc-saf so construction logic can access real filesystem/XDG internals.

Required Associated Types§

Source

type Loader

The concrete loader type produced by this builder.

Source

type Error: Error

The error type returned on build failure.

Required Methods§

Source

fn build_loader(self) -> Result<Self::Loader, Self::Error>

Consume the builder and return a ready-to-use section loader.

§Errors

Returns an error if the resolved config directory path contains .. traversal components, or if a resolved path exists but is not a directory.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§