pub enum AppsEvent {
LicenseList {
licenses: Vec<LicenseEntry>,
},
ProductInfoResponse {
apps: HashMap<u32, AppInfoData>,
packages: HashMap<u32, PackageInfoData>,
unknown_apps: Vec<u32>,
unknown_packages: Vec<u32>,
},
AccessTokensResponse {
app_tokens: HashMap<u32, u64>,
package_tokens: HashMap<u32, u64>,
app_denied: Vec<u32>,
package_denied: Vec<u32>,
},
ProductChangesResponse {
current_change_number: u32,
app_changes: Vec<AppChange>,
package_changes: Vec<PackageChange>,
},
GCReceived(GCMessage),
PlayingState {
blocked: bool,
playing_app: u32,
},
}Expand description
App and game events.
Variants§
LicenseList
Received licenses list.
Fields
§
licenses: Vec<LicenseEntry>ProductInfoResponse
PICS product info response.
Fields
§
apps: HashMap<u32, AppInfoData>App info data keyed by app ID.
§
packages: HashMap<u32, PackageInfoData>Package info data keyed by package ID.
AccessTokensResponse
PICS access tokens response.
Fields
ProductChangesResponse
PICS product changes response.
Fields
§
package_changes: Vec<PackageChange>Package IDs that have changed.
GCReceived(GCMessage)
Received a Game Coordinator message.
PlayingState
Playing session state changed.
Emitted when:
- Right after logon, only if a game is being played elsewhere (blocked is true)
- Whenever a game starts/stops being played on another session
- Whenever you start/stop playing a game on this session
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppsEvent
impl RefUnwindSafe for AppsEvent
impl Send for AppsEvent
impl Sync for AppsEvent
impl Unpin for AppsEvent
impl UnsafeUnpin for AppsEvent
impl UnwindSafe for AppsEvent
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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