discover

Function discover 

Source
pub async fn discover(
    prefs: &Prefs,
    interactive: bool,
    how: Discovery,
) -> Result<Option<Target>>
Expand description

Find the device to talk to when the command line named none.

Returns None when nothing was found, which the caller turns into an unattached REPL or a one-shot error.