pub fn start_server(
start_port: u16,
search: bool,
watch: bool,
tracing: 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