[−][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
Manual shutdown
Trait Implementations
impl<O: Into<EnumSet<LockType>>> BitAnd<O> for LockType
[src]
type Output = EnumSet<LockType>
The resulting type after applying the &
operator.
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.
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.
fn bitxor(self, other: O) -> Self::Output
[src]
impl Clone for LockType
[src]
fn clone(&self) -> Self
[src]
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
const ALL_BITS: Self::Repr
[src]
fn enum_into_u8(self) -> u8
[src]
unsafe fn enum_from_u8(val: u8) -> Self
[src]
impl Eq for LockType
[src]
impl Not for LockType
[src]
type Output = EnumSet<LockType>
The resulting type after applying the !
operator.
fn not(self) -> Self::Output
[src]
impl PartialEq<EnumSet<LockType>> for LockType
[src]
fn eq(&self, other: &EnumSet<LockType>) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<LockType> for LockType
[src]
impl<O: Into<EnumSet<LockType>>> Sub<O> for LockType
[src]
Auto Trait Implementations
impl RefUnwindSafe for LockType
impl Send for LockType
impl Sync for LockType
impl Unpin for LockType
impl UnwindSafe for LockType
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,