pub struct RestoreServiceClient {
pub stream: RemoteXpcClient<Box<dyn ReadWrite>>,
}Expand description
Client for interacting with the Restore Service
Fields§
§stream: RemoteXpcClient<Box<dyn ReadWrite>>The underlying device connection with established Restore Service service
Implementations§
Source§impl RestoreServiceClient
impl RestoreServiceClient
Sourcepub async fn new(stream: Box<dyn ReadWrite>) -> Result<Self, IdeviceError>
pub async fn new(stream: Box<dyn ReadWrite>) -> Result<Self, IdeviceError>
Creates a new Restore Service client a socket connection, and connects to the RemoteXPC service.
§Arguments
idevice- Pre-established device connection
Sourcepub async fn enter_recovery(&mut self) -> Result<(), IdeviceError>
pub async fn enter_recovery(&mut self) -> Result<(), IdeviceError>
Enter recovery
Sourcepub async fn reboot(&mut self) -> Result<(), IdeviceError>
pub async fn reboot(&mut self) -> Result<(), IdeviceError>
Reboot
Sourcepub async fn get_preflightinfo(&mut self) -> Result<Dictionary, IdeviceError>
pub async fn get_preflightinfo(&mut self) -> Result<Dictionary, IdeviceError>
Get preflightinfo
Sourcepub async fn get_nonces(&mut self) -> Result<Dictionary, IdeviceError>
pub async fn get_nonces(&mut self) -> Result<Dictionary, IdeviceError>
Get nonces Doesn’t seem to work
Sourcepub async fn get_app_parameters(&mut self) -> Result<Dictionary, IdeviceError>
pub async fn get_app_parameters(&mut self) -> Result<Dictionary, IdeviceError>
Get app parameters Doesn’t seem to work
Sourcepub async fn restore_lang(
&mut self,
language: impl Into<String>,
) -> Result<(), IdeviceError>
pub async fn restore_lang( &mut self, language: impl Into<String>, ) -> Result<(), IdeviceError>
Restores the language Doesn’t seem to work
Trait Implementations§
Source§impl Debug for RestoreServiceClient
impl Debug for RestoreServiceClient
Source§impl RsdService for RestoreServiceClient
Available on crate feature rsd only.
impl RsdService for RestoreServiceClient
Available on crate feature
rsd only.fn rsd_service_name() -> Cow<'static, str>
async fn from_stream(stream: Box<dyn ReadWrite>) -> Result<Self, IdeviceError>
fn connect_rsd(
provider: &mut impl RsdProvider,
handshake: &mut RsdHandshake,
) -> impl Future<Output = Result<Self, IdeviceError>>where
Self: RsdService,
Auto Trait Implementations§
impl !RefUnwindSafe for RestoreServiceClient
impl !UnwindSafe for RestoreServiceClient
impl Forget for RestoreServiceClient
impl Freeze for RestoreServiceClient
impl Send for RestoreServiceClient
impl Sync for RestoreServiceClient
impl Unpin for RestoreServiceClient
impl UnsafeUnpin for RestoreServiceClient
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