[−][src]Enum insomnia::LockType
The type of power management operation to inhibit
Note that on some platforms, one variant of this enum may imply another. For instance, on Windows, it's not possible to inhibit ManualSuspend
without also inhibiting AutomaticSuspend
.
Variants
Automatic suspension (managed by the system idle timer)
Manual suspension
Trait Implementations
impl<O: Into<EnumSet<LockType>>> BitAnd<O> for LockType
[src]
type Output = EnumSet<LockType>
The resulting type after applying the &
operator.
pub fn bitand(self, other: O) -> Self::Output
[src]
impl<O: Into<EnumSet<LockType>>> BitOr<O> for LockType
[src]
type Output = EnumSet<LockType>
The resulting type after applying the |
operator.
pub fn bitor(self, other: O) -> Self::Output
[src]
impl<O: Into<EnumSet<LockType>>> BitXor<O> for LockType
[src]
type Output = EnumSet<LockType>
The resulting type after applying the ^
operator.
pub fn bitxor(self, other: O) -> Self::Output
[src]
impl Clone for LockType
[src]
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LockType
[src]
impl Debug for LockType
[src]
impl EnumSetType for LockType
[src]
impl EnumSetTypePrivate for LockType
[src]
type Repr = u8
The underlying type used to store the bitset.
pub const ALL_BITS: Self::Repr
[src]
pub fn enum_into_u32(self) -> u32
[src]
pub unsafe fn enum_from_u32(val: u32) -> Self
[src]
impl Eq for LockType
[src]
impl Not for LockType
[src]
type Output = EnumSet<LockType>
The resulting type after applying the !
operator.
pub fn not(self) -> Self::Output
[src]
impl PartialEq<EnumSet<LockType>> for LockType
[src]
pub fn eq(&self, other: &EnumSet<LockType>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<LockType> for LockType
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<O: Into<EnumSet<LockType>>> Sub<O> for LockType
[src]
Auto Trait Implementations
impl RefUnwindSafe for LockType
[src]
impl Send for LockType
[src]
impl Sync for LockType
[src]
impl Unpin for LockType
[src]
impl UnwindSafe for LockType
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,