[−][src]Struct yup_oauth2::DeviceFlow
Implements the Oauth2 Device Flow It operates in two steps:
- obtain a code to show to the user
Methods
impl DeviceFlow<DefaultFlowDelegate>
[src]
pub fn new(secret: ApplicationSecret) -> DeviceFlow<DefaultFlowDelegate>
[src]
Create a new DeviceFlow. The default FlowDelegate will be used and the default wait time is 120 seconds.
impl<FD> DeviceFlow<FD>
[src]
pub fn device_code_url(self, url: String) -> Self
[src]
Use the provided device code url.
pub fn delegate<NewFD>(self, delegate: NewFD) -> DeviceFlow<NewFD>
[src]
Use the provided FlowDelegate.
pub fn wait_duration(self, duration: Duration) -> Self
[src]
Use the provided wait duration.
Trait Implementations
impl<FD, C> AuthFlow<C> for DeviceFlow<FD> where
FD: FlowDelegate + Send + 'static,
C: Connect + 'static,
[src]
FD: FlowDelegate + Send + 'static,
C: Connect + 'static,
type TokenGetter = DeviceFlowImpl<FD, C>
fn build_token_getter(self, client: Client<C>) -> Self::TokenGetter
[src]
impl<FD: Clone> Clone for DeviceFlow<FD>
[src]
fn clone(&self) -> DeviceFlow<FD>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<FD> Send for DeviceFlow<FD> where
FD: Send,
FD: Send,
impl<FD> Unpin for DeviceFlow<FD> where
FD: Unpin,
FD: Unpin,
impl<FD> Sync for DeviceFlow<FD> where
FD: Sync,
FD: Sync,
impl<FD> UnwindSafe for DeviceFlow<FD> where
FD: UnwindSafe,
FD: UnwindSafe,
impl<FD> RefUnwindSafe for DeviceFlow<FD> where
FD: RefUnwindSafe,
FD: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,