pub struct DisplayTest {}
Implementations§
Source§impl DisplayTest
impl DisplayTest
pub async fn create_realm() -> Result<RealmInstance, Error>
pub async fn create_realm_with_brightness_controller( manual_brightness: Arc<Mutex<Option<f32>>>, auto_brightness: Arc<Mutex<Option<bool>>>, num_changes: Arc<AtomicU32>, requests_sender: Sender<Request>, ) -> Result<RealmInstance, Error>
pub fn connect_to_displaymarker(instance: &RealmInstance) -> DisplayProxy
pub fn get_init_manual_brightness() -> Arc<Mutex<Option<f32>>>
pub fn get_init_auto_brightness() -> Arc<Mutex<Option<bool>>>
pub fn get_init_num_changes() -> Arc<AtomicU32>
pub async fn test_screen_enabled(display_proxy: DisplayProxy)
Trait Implementations§
Source§impl Mocks for DisplayTest
impl Mocks for DisplayTest
fn brightness_service_impl<'async_trait>( handles: LocalComponentHandles, manual_brightness: Arc<Mutex<Option<f32>>>, auto_brightness: Arc<Mutex<Option<bool>>>, num_changes: Arc<AtomicU32>, requests_sender: Sender<Request>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
Auto Trait Implementations§
impl Freeze for DisplayTest
impl RefUnwindSafe for DisplayTest
impl Send for DisplayTest
impl Sync for DisplayTest
impl Unpin for DisplayTest
impl UnwindSafe for DisplayTest
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