pub struct DeviceCodePhaseOneResponse<'a> { /* private fields */ }Expand description
Contains the required information to allow a user to sign in.
Implementations§
Source§impl DeviceCodePhaseOneResponse<'_>
impl DeviceCodePhaseOneResponse<'_>
Sourcepub fn stream(
&self,
) -> Pin<Box<impl Stream<Item = Result<DeviceCodeAuthorization>> + '_>>
pub fn stream( &self, ) -> Pin<Box<impl Stream<Item = Result<DeviceCodeAuthorization>> + '_>>
Polls the token endpoint while the user signs in.
This will continue until either success or a terminal error is
returned. Per RFC 8628 §3.5 the authorization_pending and
slow_down server errors keep the poll loop alive; slow_down
additionally requires the client to extend its polling interval by
5 seconds.
Trait Implementations§
Source§impl<'a> Clone for DeviceCodePhaseOneResponse<'a>
impl<'a> Clone for DeviceCodePhaseOneResponse<'a>
Source§fn clone(&self) -> DeviceCodePhaseOneResponse<'a>
fn clone(&self) -> DeviceCodePhaseOneResponse<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for DeviceCodePhaseOneResponse<'a>
impl<'a> Debug for DeviceCodePhaseOneResponse<'a>
Source§impl<'de, 'a> Deserialize<'de> for DeviceCodePhaseOneResponse<'a>
impl<'de, 'a> Deserialize<'de> for DeviceCodePhaseOneResponse<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for DeviceCodePhaseOneResponse<'a>
impl<'a> RefUnwindSafe for DeviceCodePhaseOneResponse<'a>
impl<'a> Send for DeviceCodePhaseOneResponse<'a>
impl<'a> Sync for DeviceCodePhaseOneResponse<'a>
impl<'a> Unpin for DeviceCodePhaseOneResponse<'a>
impl<'a> UnsafeUnpin for DeviceCodePhaseOneResponse<'a>
impl<'a> UnwindSafe for DeviceCodePhaseOneResponse<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<D> DeserializeWith<JsonFormat> for Dwhere
D: DeserializeOwned,
impl<D> DeserializeWith<JsonFormat> for Dwhere
D: DeserializeOwned,
Source§fn deserialize_with(body: ResponseBody) -> Result<D, Error>
fn deserialize_with(body: ResponseBody) -> Result<D, Error>
Deserialize the response body using the specified format. Read more