pub enum RestoreLifecycleEvent {
Progress {
operation: Option<String>,
progress: Option<u64>,
},
Status {
code: u64,
message: Option<String>,
log: Option<String>,
finished: bool,
},
Checkpoint {
name: Option<String>,
raw: IndexMap<String, XpcValue>,
},
DataRequest {
data_type: Option<String>,
data_port: Option<u64>,
async_request: bool,
raw: IndexMap<String, XpcValue>,
},
PreviousRestoreLog(String),
RestoredCrash {
backtrace: Vec<String>,
},
Unknown {
msg_type: Option<String>,
raw: IndexMap<String, XpcValue>,
},
}Expand description
Normalized restore lifecycle event.
Variants§
Progress
Progress update with optional operation label and percentage-like progress value.
Fields
Status
Status message. finished is true when the service reports status code 0.
Fields
Checkpoint
Restore checkpoint notification.
Fields
DataRequest
Data request emitted during a restore lifecycle stream.
Fields
PreviousRestoreLog(String)
Previous restore log payload.
RestoredCrash
Crash report emitted by restored.
Unknown
Event type not yet modeled by ios-core.
Implementations§
Source§impl RestoreLifecycleEvent
impl RestoreLifecycleEvent
Sourcepub fn from_xpc_dictionary(message: &IndexMap<String, XpcValue>) -> Self
pub fn from_xpc_dictionary(message: &IndexMap<String, XpcValue>) -> Self
Convert a raw XPC dictionary from restored into a typed lifecycle event.
Trait Implementations§
Source§impl Clone for RestoreLifecycleEvent
impl Clone for RestoreLifecycleEvent
Source§fn clone(&self) -> RestoreLifecycleEvent
fn clone(&self) -> RestoreLifecycleEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RestoreLifecycleEvent
impl Debug for RestoreLifecycleEvent
Source§impl PartialEq for RestoreLifecycleEvent
impl PartialEq for RestoreLifecycleEvent
Source§fn eq(&self, other: &RestoreLifecycleEvent) -> bool
fn eq(&self, other: &RestoreLifecycleEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RestoreLifecycleEvent
Auto Trait Implementations§
impl Freeze for RestoreLifecycleEvent
impl RefUnwindSafe for RestoreLifecycleEvent
impl Send for RestoreLifecycleEvent
impl Sync for RestoreLifecycleEvent
impl Unpin for RestoreLifecycleEvent
impl UnsafeUnpin for RestoreLifecycleEvent
impl UnwindSafe for RestoreLifecycleEvent
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