[][src]Enum insomnia::LockType

pub enum LockType {
    AutomaticSuspend,
    ManualSuspend,
}

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

AutomaticSuspend

Automatic suspension (managed by the system idle timer)

ManualSuspend

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.

impl<O: Into<EnumSet<LockType>>> BitOr<O> for LockType[src]

type Output = EnumSet<LockType>

The resulting type after applying the | operator.

impl<O: Into<EnumSet<LockType>>> BitXor<O> for LockType[src]

type Output = EnumSet<LockType>

The resulting type after applying the ^ operator.

impl Clone for LockType[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.

impl Eq for LockType[src]

impl Not for LockType[src]

type Output = EnumSet<LockType>

The resulting type after applying the ! operator.

impl PartialEq<EnumSet<LockType>> for LockType[src]

impl PartialEq<LockType> for LockType[src]

impl<O: Into<EnumSet<LockType>>> Sub<O> for LockType[src]

type Output = EnumSet<LockType>

The resulting type after applying the - operator.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.