Skip to main content

login

Function login 

Source
pub async fn login<T>(
    connection: &str,
    attempt: impl Future<Output = Result<T, String>>,
) -> Result<T, String>
Expand description

Log in over connection (attempt: a command over it), holding the connection open meanwhile like a pane, so its status is connecting while the user answers a prompt, connected once the command succeeded, and the failure if it didn’t.