pub struct RestoreServiceClient<S> { /* private fields */ }Expand description
Client for RestoreRemoteServices over an initialized stream.
Implementations§
Source§impl<S: AsyncRead + AsyncWrite + Unpin> RestoreServiceClient<S>
impl<S: AsyncRead + AsyncWrite + Unpin> RestoreServiceClient<S>
Sourcepub async fn connect(stream: S) -> Result<Self, RestoreError>
pub async fn connect(stream: S) -> Result<Self, RestoreError>
Connect and bootstrap the RemoteXPC/H2 restore service.
Sourcepub async fn enter_recovery(
&mut self,
) -> Result<IndexMap<String, XpcValue>, RestoreError>
pub async fn enter_recovery( &mut self, ) -> Result<IndexMap<String, XpcValue>, RestoreError>
Ask the device to enter recovery mode.
Sourcepub async fn delay_recovery_image(
&mut self,
) -> Result<IndexMap<String, XpcValue>, RestoreError>
pub async fn delay_recovery_image( &mut self, ) -> Result<IndexMap<String, XpcValue>, RestoreError>
Request delay-recovery-image mode on supported devices.
Sourcepub async fn reboot(
&mut self,
) -> Result<IndexMap<String, XpcValue>, RestoreError>
pub async fn reboot( &mut self, ) -> Result<IndexMap<String, XpcValue>, RestoreError>
Ask restored to reboot the device.
Sourcepub async fn get_preflight_info(
&mut self,
) -> Result<IndexMap<String, XpcValue>, RestoreError>
pub async fn get_preflight_info( &mut self, ) -> Result<IndexMap<String, XpcValue>, RestoreError>
Query restore preflight metadata.
Sourcepub async fn get_nonces(
&mut self,
) -> Result<IndexMap<String, XpcValue>, RestoreError>
pub async fn get_nonces( &mut self, ) -> Result<IndexMap<String, XpcValue>, RestoreError>
Query restore nonces such as AP and SEP nonces.
Sourcepub async fn get_app_parameters(
&mut self,
) -> Result<IndexMap<String, XpcValue>, RestoreError>
pub async fn get_app_parameters( &mut self, ) -> Result<IndexMap<String, XpcValue>, RestoreError>
Query restore app parameters.
Sourcepub async fn restore_lang(
&mut self,
language: impl Into<String>,
) -> Result<IndexMap<String, XpcValue>, RestoreError>
pub async fn restore_lang( &mut self, language: impl Into<String>, ) -> Result<IndexMap<String, XpcValue>, RestoreError>
Send a restore language identifier.
Sourcepub async fn next_lifecycle_event(
&mut self,
) -> Result<RestoreLifecycleEvent, RestoreError>
pub async fn next_lifecycle_event( &mut self, ) -> Result<RestoreLifecycleEvent, RestoreError>
Read and normalize one restore lifecycle control event.
Auto Trait Implementations§
impl<S> Freeze for RestoreServiceClient<S>where
S: Freeze,
impl<S> RefUnwindSafe for RestoreServiceClient<S>where
S: RefUnwindSafe,
impl<S> Send for RestoreServiceClient<S>where
S: Send,
impl<S> Sync for RestoreServiceClient<S>where
S: Sync,
impl<S> Unpin for RestoreServiceClient<S>where
S: Unpin,
impl<S> UnsafeUnpin for RestoreServiceClient<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for RestoreServiceClient<S>where
S: UnwindSafe,
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