Struct github_device_oauth::DeviceFlow
source · pub struct DeviceFlow { /* private fields */ }
Implementations§
source§impl DeviceFlow
impl DeviceFlow
sourcepub async fn auth(
&self,
retrive_refresh_token: impl FnOnce() -> Result<String, DeviceFlowError>,
) -> Result<Credentials, DeviceFlowError>
pub async fn auth( &self, retrive_refresh_token: impl FnOnce() -> Result<String, DeviceFlowError>, ) -> Result<Credentials, DeviceFlowError>
Trait Implementations§
source§impl Clone for DeviceFlow
impl Clone for DeviceFlow
source§fn clone(&self) -> DeviceFlow
fn clone(&self) -> DeviceFlow
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DeviceFlow
impl RefUnwindSafe for DeviceFlow
impl Send for DeviceFlow
impl Sync for DeviceFlow
impl Unpin for DeviceFlow
impl UnwindSafe for DeviceFlow
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