pub struct PlatformBehaviorInhibition { /* private fields */ }Expand description
Controls platform behaviours an application may need to inhibit.
Trait Implementations§
Source§impl IPlatformBehaviorInhibition for PlatformBehaviorInhibition
impl IPlatformBehaviorInhibition for PlatformBehaviorInhibition
Source§fn set_inhibit_app_sleep(
&self,
inhibit_app_sleep: bool,
reason: &str,
) -> LocalBoxFuture<()>
fn set_inhibit_app_sleep( &self, inhibit_app_sleep: bool, reason: &str, ) -> LocalBoxFuture<()>
Prevents (or allows again) the system from putting the application
to sleep; reason is shown by the system as the reason.
The native call completes synchronously: the returned future is complete.
Auto Trait Implementations§
impl !Send for PlatformBehaviorInhibition
impl !Sync for PlatformBehaviorInhibition
impl Freeze for PlatformBehaviorInhibition
impl RefUnwindSafe for PlatformBehaviorInhibition
impl Unpin for PlatformBehaviorInhibition
impl UnsafeUnpin for PlatformBehaviorInhibition
impl UnwindSafe for PlatformBehaviorInhibition
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more