pub struct DeviceAccessTokenEndpoint<'a, SCOPE>where
SCOPE: Scope,{ /* private fields */ }
Implementations§
Source§impl<'a, SCOPE> DeviceAccessTokenEndpoint<'a, SCOPE>where
SCOPE: Scope,
impl<'a, SCOPE> DeviceAccessTokenEndpoint<'a, SCOPE>where
SCOPE: Scope,
pub fn new( provider: &'a (dyn ProviderExtDeviceAuthorizationGrant<Scope = SCOPE> + Send + Sync), device_authorization_response_successful_body: DA_RES_SuccessfulBody, ) -> Self
Trait Implementations§
Source§impl<'a, SCOPE> Clone for DeviceAccessTokenEndpoint<'a, SCOPE>
impl<'a, SCOPE> Clone for DeviceAccessTokenEndpoint<'a, SCOPE>
Source§fn clone(&self) -> DeviceAccessTokenEndpoint<'a, SCOPE>
fn clone(&self) -> DeviceAccessTokenEndpoint<'a, SCOPE>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a, SCOPE> RetryableEndpoint for DeviceAccessTokenEndpoint<'a, SCOPE>
impl<'a, SCOPE> RetryableEndpoint for DeviceAccessTokenEndpoint<'a, SCOPE>
type RetryReason = DeviceAccessTokenEndpointRetryReason
type RenderRequestError = DeviceAccessTokenEndpointError
type ParseResponseOutput = Result<SuccessfulBody<SCOPE>, ErrorBody>
type ParseResponseError = DeviceAccessTokenEndpointError
fn render_request( &self, _retry: Option<&RetryableEndpointRetry<Self::RetryReason>>, ) -> Result<Request<Body>, Self::RenderRequestError>
fn parse_response( &self, response: Response<Body>, _retry: Option<&RetryableEndpointRetry<Self::RetryReason>>, ) -> Result<Result<Self::ParseResponseOutput, Self::RetryReason>, Self::ParseResponseError>
fn next_retry_in( &self, retry: &RetryableEndpointRetry<Self::RetryReason>, ) -> Duration
fn max_retry_count(&self) -> usize
Auto Trait Implementations§
impl<'a, SCOPE> Freeze for DeviceAccessTokenEndpoint<'a, SCOPE>
impl<'a, SCOPE> !RefUnwindSafe for DeviceAccessTokenEndpoint<'a, SCOPE>
impl<'a, SCOPE> Send for DeviceAccessTokenEndpoint<'a, SCOPE>
impl<'a, SCOPE> Sync for DeviceAccessTokenEndpoint<'a, SCOPE>
impl<'a, SCOPE> Unpin for DeviceAccessTokenEndpoint<'a, SCOPE>
impl<'a, SCOPE> !UnwindSafe for DeviceAccessTokenEndpoint<'a, SCOPE>
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