Function grafbase_local_backend::server_api::start_server
source · [−]pub fn start_server(
external_port: Option<u16>,
search: bool,
watch: bool
) -> Result<(JoinHandle<Result<(), ServerError>>, Receiver<ServerMessage>), BackendError>Expand description
starts the server if an available port can be found
Errors
returns BackendError::AvailablePort if no available port can be found
returns BackendError::PortInUse if search is off and the supplied port is in use