pub fn get_backend<'cfg>(
config: &'cfg Config,
) -> Result<Box<dyn Backend<'cfg> + 'cfg>, ConfgetError>Expand description
Construct an object of the specified backend type.
The backend member of the Config object
specifies the type of the backend to construct.
Some backends may perform validation at object creation time; the “ini” one currently does not, so this method will always succeed.
§Errors
None for the present, but future backends may check for configuration inconsistencies.