pub struct Flow<C1, C2>where
C1: Client,
C2: RetryableClient,{
pub client_with_auth: C1,
pub client_with_token: C2,
}
Fields§
§client_with_auth: C1
§client_with_token: C2
Implementations§
Source§impl<C1, C2> Flow<C1, C2>where
C1: Client,
C2: RetryableClient,
impl<C1, C2> Flow<C1, C2>where
C1: Client,
C2: RetryableClient,
Source§impl<C1, C2> Flow<C1, C2>
impl<C1, C2> Flow<C1, C2>
pub async fn execute<SCOPE, UI>(
&self,
provider: &(dyn ProviderExtDeviceAuthorizationGrant<Scope = SCOPE> + Send + Sync),
scopes: impl Into<Option<Vec<SCOPE>>>,
user_interaction: UI,
) -> Result<DAT_RES_SuccessfulBody<SCOPE>, FlowExecuteError>where
SCOPE: Scope + Serialize + DeserializeOwned + Send + Sync,
UI: FnOnce(UserCode, VerificationUri, Option<VerificationUriComplete>),
Trait Implementations§
Auto Trait Implementations§
impl<C1, C2> Freeze for Flow<C1, C2>
impl<C1, C2> RefUnwindSafe for Flow<C1, C2>where
C1: RefUnwindSafe,
C2: RefUnwindSafe,
impl<C1, C2> Send for Flow<C1, C2>
impl<C1, C2> Sync for Flow<C1, C2>
impl<C1, C2> Unpin for Flow<C1, C2>
impl<C1, C2> UnwindSafe for Flow<C1, C2>where
C1: UnwindSafe,
C2: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more