pub enum Event {
Show 40 variants
PlayerPlaying {
context: AnalyticsContext,
load_time: i64,
},
PlayerStopped {
context: AnalyticsContext,
},
PlayerNextVideo {
context: AnalyticsContext,
is_binge_enabled: bool,
is_playing_next_video: bool,
},
PlayerEnded {
context: AnalyticsContext,
is_binge_enabled: bool,
is_playing_next_video: bool,
},
TraktPlaying {
context: AnalyticsContext,
},
TraktPaused {
context: AnalyticsContext,
},
ProfilePushedToStorage {
uid: UID,
},
LibraryItemsPushedToStorage {
ids: Vec<String>,
},
StreamsPushedToStorage {
uid: UID,
},
SearchHistoryPushedToStorage {
uid: UID,
},
NotificationsPushedToStorage {
ids: Vec<String>,
},
DismissedEventsPushedToStorage {
uid: UID,
},
UserPulledFromAPI {
uid: UID,
},
UserPushedToAPI {
uid: UID,
},
AddonsPulledFromAPI {
transport_urls: Vec<Url>,
},
AddonsPushedToAPI {
transport_urls: Vec<Url>,
},
LibrarySyncWithAPIPlanned {
uid: UID,
plan: (Vec<String>, Vec<String>),
},
LibraryItemsPushedToAPI {
ids: Vec<String>,
},
LibraryItemsPulledFromAPI {
ids: Vec<String>,
},
UserAuthenticated {
auth_request: AuthRequest,
},
UserAddonsLocked {
addons_locked: bool,
},
UserLibraryMissing {
library_missing: bool,
},
UserLoggedOut {
uid: UID,
},
SessionDeleted {
auth_key: AuthKey,
},
TraktAddonFetched {
uid: UID,
},
TraktLoggedOut {
uid: UID,
},
AddonInstalled {
transport_url: Url,
id: String,
},
AddonUpgraded {
transport_url: Url,
id: String,
},
AddonUninstalled {
transport_url: Url,
id: String,
},
SettingsUpdated {
settings: Settings,
},
LibraryItemAdded {
id: LibraryItemId,
},
LibraryItemRemoved {
id: LibraryItemId,
},
LibraryItemRewinded {
id: LibraryItemId,
},
LibraryItemNotificationsToggled {
id: LibraryItemId,
},
LibraryItemMarkedAsWatched {
id: LibraryItemId,
is_watched: bool,
},
NotificationsDismissed {
id: LibraryItemId,
},
MagnetParsed {
magnet: Url,
},
TorrentParsed {
torrent: Vec<u8>,
},
PlayingOnDevice {
device: String,
},
Error {
error: CtxError,
source: Box<Event>,
},
}
Expand description
Those messages are meant to be dispatched by the stremio-core
crate and
handled by the users of the stremio-core
crate and by the stremio-core
crate itself.
Variants§
PlayerPlaying
PlayerStopped
Fields
§
context: AnalyticsContext
PlayerNextVideo
PlayerEnded
TraktPlaying
Fields
§
context: AnalyticsContext
TraktPaused
Fields
§
context: AnalyticsContext
ProfilePushedToStorage
LibraryItemsPushedToStorage
StreamsPushedToStorage
SearchHistoryPushedToStorage
NotificationsPushedToStorage
DismissedEventsPushedToStorage
UserPulledFromAPI
UserPushedToAPI
AddonsPulledFromAPI
AddonsPushedToAPI
LibrarySyncWithAPIPlanned
LibraryItemsPushedToAPI
LibraryItemsPulledFromAPI
UserAuthenticated
Fields
§
auth_request: AuthRequest
UserAddonsLocked
UserLibraryMissing
UserLoggedOut
SessionDeleted
TraktAddonFetched
TraktLoggedOut
AddonInstalled
AddonUpgraded
AddonUninstalled
SettingsUpdated
LibraryItemAdded
Fields
§
id: LibraryItemId
LibraryItemRemoved
Fields
§
id: LibraryItemId
LibraryItemRewinded
Fields
§
id: LibraryItemId
LibraryItemNotificationsToggled
Fields
§
id: LibraryItemId
LibraryItemMarkedAsWatched
The LibraryItem with the given id has been marked as watched or unwatched (Overrides the previous watched state)
NotificationsDismissed
The notifications for the given LibraryItemId have been dismissed
Fields
§
id: LibraryItemId
MagnetParsed
TorrentParsed
PlayingOnDevice
Error
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)