[][src]Struct yup_oauth2::DeviceFlow

pub struct DeviceFlow<FD> { /* fields omitted */ }

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]

type TokenGetter = DeviceFlowImpl<FD, C>

impl<FD: Clone> Clone for 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

impl<FD> Unpin for DeviceFlow<FD> where
    FD: Unpin

impl<FD> Sync for DeviceFlow<FD> where
    FD: Sync

impl<FD> UnwindSafe for DeviceFlow<FD> where
    FD: UnwindSafe

impl<FD> RefUnwindSafe for DeviceFlow<FD> where
    FD: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T