pub struct SetIdleOverrideCommand { /* private fields */ }Available on crate features
Emulation and DOM and Page and Runtime and experimental only.Expand description
Overrides the Idle state.
Implementations§
Source§impl SetIdleOverrideCommand
impl SetIdleOverrideCommand
pub fn new(is_user_active: bool, is_screen_unlocked: bool) -> Self
Sourcepub fn is_user_active(&self) -> bool
pub fn is_user_active(&self) -> bool
Mock isUserActive
Sourcepub fn is_screen_unlocked(&self) -> bool
pub fn is_screen_unlocked(&self) -> bool
Mock isScreenUnlocked
Trait Implementations§
Source§impl Clone for SetIdleOverrideCommand
impl Clone for SetIdleOverrideCommand
Source§fn clone(&self) -> SetIdleOverrideCommand
fn clone(&self) -> SetIdleOverrideCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Command for SetIdleOverrideCommand
impl Command for SetIdleOverrideCommand
Source§impl Debug for SetIdleOverrideCommand
impl Debug for SetIdleOverrideCommand
Source§impl<'de> Deserialize<'de> for SetIdleOverrideCommand
impl<'de> Deserialize<'de> for SetIdleOverrideCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SetIdleOverrideCommand
impl RefUnwindSafe for SetIdleOverrideCommand
impl Send for SetIdleOverrideCommand
impl Sync for SetIdleOverrideCommand
impl Unpin for SetIdleOverrideCommand
impl UnwindSafe for SetIdleOverrideCommand
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