pub struct CaptureHostRegistry { /* private fields */ }Expand description
Per-UDID resident-host registry. Held behind an async mutex inside
SimctlClient.
Implementations§
Source§impl CaptureHostRegistry
impl CaptureHostRegistry
Sourcepub fn take(&mut self, udid: &str) -> Option<SurfaceCaptureHost>
pub fn take(&mut self, udid: &str) -> Option<SurfaceCaptureHost>
Take (removing) the host for udid, if resident.
Sourcepub fn put(&mut self, udid: &str, host: SurfaceCaptureHost)
pub fn put(&mut self, udid: &str, host: SurfaceCaptureHost)
Re-insert a live host for udid.
Sourcepub fn evict(&mut self, udid: &str) -> Option<SurfaceCaptureHost>
pub fn evict(&mut self, udid: &str) -> Option<SurfaceCaptureHost>
Drop the resident host for udid (e.g. on a lifecycle change).
Trait Implementations§
Source§impl Debug for CaptureHostRegistry
impl Debug for CaptureHostRegistry
Source§impl Default for CaptureHostRegistry
impl Default for CaptureHostRegistry
Source§fn default() -> CaptureHostRegistry
fn default() -> CaptureHostRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CaptureHostRegistry
impl !UnwindSafe for CaptureHostRegistry
impl Freeze for CaptureHostRegistry
impl Send for CaptureHostRegistry
impl Sync for CaptureHostRegistry
impl Unpin for CaptureHostRegistry
impl UnsafeUnpin for CaptureHostRegistry
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