pub trait DeviceFlowDelegate: Send + Sync {
    // Provided method
    fn present_user_code<'a>(
        &'a self,
        device_auth_resp: &'a DeviceAuthResponse
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'a>> { ... }
}Expand description
DeviceFlowDelegate methods are called when a device flow needs to ask the application what to do in certain cases.
Provided Methods§
sourcefn present_user_code<'a>(
    &'a self,
    device_auth_resp: &'a DeviceAuthResponse
) -> Pin<Box<dyn Future<Output = ()> + Send + 'a>>
 
fn present_user_code<'a>( &'a self, device_auth_resp: &'a DeviceAuthResponse ) -> Pin<Box<dyn Future<Output = ()> + Send + 'a>>
The server has returned a user_code which must be shown to the user,
along with the verification_uri.
Notes
- Will be called exactly once, provided we didn’t abort during 
request_codephase.