pub struct DiagnosticsServiceClient { /* private fields */ }Expand description
Client for the CoreDevice diagnostics service.
Implementations§
Source§impl DiagnosticsServiceClient
impl DiagnosticsServiceClient
Sourcepub fn new(client: XpcClient, device_identifier: impl Into<String>) -> Self
pub fn new(client: XpcClient, device_identifier: impl Into<String>) -> Self
Create a diagnostics client from an initialized XPC client and device identifier.
Sourcepub async fn capture_sysdiagnose(
&mut self,
dry_run: bool,
) -> Result<SysdiagnoseResponse, DiagnosticsServiceError>
pub async fn capture_sysdiagnose( &mut self, dry_run: bool, ) -> Result<SysdiagnoseResponse, DiagnosticsServiceError>
Request a sysdiagnose capture.
When dry_run is true, the device validates and describes the capture without
collecting the full archive.
Auto Trait Implementations§
impl Freeze for DiagnosticsServiceClient
impl !RefUnwindSafe for DiagnosticsServiceClient
impl Send for DiagnosticsServiceClient
impl !Sync for DiagnosticsServiceClient
impl Unpin for DiagnosticsServiceClient
impl UnsafeUnpin for DiagnosticsServiceClient
impl !UnwindSafe for DiagnosticsServiceClient
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