BackgroundFetchCompletedForAllAccounts event

This commit is contained in:
Simon Laux
2024-01-04 07:27:08 +01:00
committed by bjoern
parent 946eea4c9e
commit df455bbcf5
8 changed files with 42 additions and 4 deletions

View File

@@ -245,6 +245,13 @@ pub enum EventType {
/// Inform that a message containing a webxdc instance has been deleted
#[serde(rename_all = "camelCase")]
WebxdcInstanceDeleted { msg_id: u32 },
/// Tells that the Background fetch was completed (or timed out).
/// This event acts as a marker, when you reach this event you can be sure
/// that all events emitted during the background fetch were processed.
///
/// This event is only emitted by the account manager
BackgroundFetchCompletedForAllAccounts,
}
impl From<CoreEventType> for EventType {
@@ -353,6 +360,9 @@ impl From<CoreEventType> for EventType {
CoreEventType::WebxdcInstanceDeleted { msg_id } => WebxdcInstanceDeleted {
msg_id: msg_id.to_u32(),
},
CoreEventType::BackgroundFetchCompletedForAllAccounts => {
BackgroundFetchCompletedForAllAccounts
}
}
}
}