Skip to main content

Pending

Trait Pending 

Source
pub trait Pending: Send {
    // Required method
    fn finish(self: Box<Self>, cancel: &Cancel) -> Result<SignedIn, AuthError>;
}
Expand description

The rest of a started sign-in, run off the UI thread.

Required Methods§

Source

fn finish(self: Box<Self>, cancel: &Cancel) -> Result<SignedIn, AuthError>

Waits for the browser or the code, then exchanges and checks the token. Returns AuthError::Cancelled soon after cancel.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§