pub struct GogSource { /* private fields */ }Implementations§
Source§impl GogSource
impl GogSource
pub fn new(app_handle: AppHandle) -> Self
pub async fn fetch_games_detailed(&self) -> Result<Vec<SourceGame>, AppError>
Trait Implementations§
Source§impl GameSource for GogSource
impl GameSource for GogSource
fn fetch_games<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<SourceGame>, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl OAuthGameSource for GogSource
impl OAuthGameSource for GogSource
Source§fn login<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn login<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GOG não aceita redirect_uri para localhost. O redirect registrado (embed.gog.com/on_login_success?origin=client) é interceptado numa
WebviewWindow própria antes de carregar, em vez de usar o servidor local (wait_for_auth_code) do fluxo default do trait.
Source§fn oauth_config(&self) -> &OAuthProviderConfig
fn oauth_config(&self) -> &OAuthProviderConfig
Configuração do provedor (endpoints, client_id, escopos, etc.).
Source§fn app_handle(&self) -> &AppHandle
fn app_handle(&self) -> &AppHandle
Handle da aplicação, necessário para acessar o secrets.db.
Source§fn is_authenticated(&self) -> Result<bool, AppError>
fn is_authenticated(&self) -> Result<bool, AppError>
Verifica se existe um token salvo para este provedor.
Auto Trait Implementations§
impl Freeze for GogSource
impl !RefUnwindSafe for GogSource
impl Send for GogSource
impl Sync for GogSource
impl Unpin for GogSource
impl UnsafeUnpin for GogSource
impl !UnwindSafe for GogSource
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more