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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more