pub struct ScreenshotClient<'a, R: ReadWrite> { /* private fields */ }Expand description
Client for take screenshot operations on iOS devices
Provides methods for take screnn_shot through the instruments protocol. Each instance maintains its own communication channel.
Implementations§
Source§impl<'a, R: ReadWrite> ScreenshotClient<'a, R>
impl<'a, R: ReadWrite> ScreenshotClient<'a, R>
Sourcepub async fn new(
client: &'a mut RemoteServerClient<R>,
) -> Result<Self, IdeviceError>
pub async fn new( client: &'a mut RemoteServerClient<R>, ) -> Result<Self, IdeviceError>
Sourcepub async fn take_screenshot(&mut self) -> Result<Vec<u8>, IdeviceError>
pub async fn take_screenshot(&mut self) -> Result<Vec<u8>, IdeviceError>
Trait Implementations§
Auto Trait Implementations§
impl<'a, R> !RefUnwindSafe for ScreenshotClient<'a, R>
impl<'a, R> !UnwindSafe for ScreenshotClient<'a, R>
impl<'a, R> Forget for ScreenshotClient<'a, R>
impl<'a, R> Freeze for ScreenshotClient<'a, R>
impl<'a, R> Send for ScreenshotClient<'a, R>
impl<'a, R> Sync for ScreenshotClient<'a, R>
impl<'a, R> Unpin for ScreenshotClient<'a, R>
impl<'a, R> UnsafeUnpin for ScreenshotClient<'a, R>where
Channel<'a, R>: UnsafeUnpin,
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