msg: explain all msgs
@@ -14,10 +14,20 @@ pub use actions::*;
//
#[derive(Debug)]
pub enum Internal {
+ // Context loaded from storage
CtxLoaded(Option<Box<CtxContent>>),
+ // Context updated as a result of authentication/logout
CtxUpdate(Box<CtxContent>),
+ // Context addons pulled
+ // this should replace ctx.content.addons entirely
CtxAddonsPulled(AuthKey, Vec<Descriptor>),
+ // Library is loaded, either from storage or from an initial API sync
+ // This will replace the whole library index, as long as AuthKey matches
+ LibLoaded(AuthKey, Vec<LibItem>),
+ // Library: pulled some newer items from the API
+ // this will extend the current index of libitems, it doesn't replace it
LibSyncPulled(AuthKey, Vec<LibItem>),
+ // Response from an add-on
AddonResponse(ResourceRequest, Box<Result<ResourceResponse, EnvError>>),
}
