pub fn default_backend() -> Box<dyn Backend>Expand description
Creates a new instance of the default backend.
The following steps are performed to determine the default backend:
- If the
DIALOGenvironment variable is set to a valid backend name, this backend is used. A valid backend name is the name of a struct in thebackendsmodule implementing theBackendtrait in any case. - If the
DISPLAYenvironment variable is set, the following resolution algorithm is used: - If the
Dialogbackend is available, it is used. - Otherwise, a
Stdioinstance is returned.