Skip to main content

configbuilder_pattern_builder/
config_builder_init.rs

1use std::time::Duration;
2
3/// Initialisation and timeout-override methods for concrete config builders.
4///
5/// Implemented by the real builder type in `configbuilder-svc-saf`.
6pub trait ConfigBuilderInit: Sized {
7    /// Create an empty builder with no name, version, or config dirs set.
8    fn new() -> Self;
9
10    /// Override the default 30-second read deadline for each config file.
11    fn with_read_timeout(self, timeout: Duration) -> Self;
12}