Creates a new Learner instance from a configuration file path. Loads configuration from the specified directory, which should contain a config.toml file. # Arguments `path` - Directory containing config.toml # Errors Returns error if: - Configuration file does not exist - TOML parsing fails - Directory creation fails - Initialization fails # Examples ```no_run # use learner::Learner; # asyn
(path: impl AsRef<Path>)
| 628 | /// # } |
| 629 | /// ``` |
| 630 | pub async fn from_path(path: impl AsRef<Path>) -> Result<Self> { |
| 631 | Self::builder().with_path(path).build().await |
| 632 | } |
| 633 | |
| 634 | /// Creates a new Learner instance with explicit configuration. |
| 635 | /// |