configbuilder-pattern-builder 0.1.0

configbuilder-pattern: builder domain (ConfigBuilder/BuilderFinalizer), trait contract + tech-agnostic reference implementation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::time::Duration;

/// Initialisation and timeout-override methods for concrete config builders.
///
/// Implemented by the real builder type in `configbuilder-svc-saf`.
pub trait ConfigBuilderInit: Sized {
    /// Create an empty builder with no name, version, or config dirs set.
    fn new() -> Self;

    /// Override the default 30-second read deadline for each config file.
    fn with_read_timeout(self, timeout: Duration) -> Self;
}