bits of docs

This commit is contained in:
Dustin J. Mitchell
2020-11-29 21:26:39 -05:00
parent 8601c0cb67
commit de03209285
3 changed files with 16 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ pub use local::LocalServer;
pub use remote::RemoteServer;
pub use types::*;
/// Create a new server based on the given configuration.
pub fn from_config(config: ServerConfig) -> Fallible<Box<dyn Server>> {
Ok(match config {
ServerConfig::Local { server_dir } => Box::new(LocalServer::new(server_dir)?),