pub struct ScreenCaptureServiceClient<R: ReadWrite> { /* private fields */ }Implementations§
Source§impl<R: ReadWrite> ScreenCaptureServiceClient<R>
impl<R: ReadWrite> ScreenCaptureServiceClient<R>
Sourcepub async fn take_screenshot(
&mut self,
display_unique_id: Option<&str>,
format: ImageFormat,
) -> Result<Vec<u8>, IdeviceError>
pub async fn take_screenshot( &mut self, display_unique_id: Option<&str>, format: ImageFormat, ) -> Result<Vec<u8>, IdeviceError>
Capture a screenshot of display_unique_id (or the primary display when
None) encoded as format. Returns the raw image bytes.
Trait Implementations§
Source§impl RsdService for ScreenCaptureServiceClient<Box<dyn ReadWrite>>
impl RsdService for ScreenCaptureServiceClient<Box<dyn ReadWrite>>
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<R> Freeze for ScreenCaptureServiceClient<R>where
R: Freeze,
impl<R> RefUnwindSafe for ScreenCaptureServiceClient<R>where
R: RefUnwindSafe,
impl<R> Send for ScreenCaptureServiceClient<R>
impl<R> Sync for ScreenCaptureServiceClient<R>
impl<R> Unpin for ScreenCaptureServiceClient<R>
impl<R> UnsafeUnpin for ScreenCaptureServiceClient<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for ScreenCaptureServiceClient<R>where
R: 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