pub struct RuleHold {
pub mode: Mode,
pub reasons: Vec<String>,
}Expand description
Triggers currently keeping the Mac awake.
Fields§
§mode: Mode§reasons: Vec<String>Why, e.g. “Xcode is running”. Never empty.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RuleHold
impl<'de> Deserialize<'de> for RuleHold
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
impl Eq for RuleHold
impl StructuralPartialEq for RuleHold
Auto Trait Implementations§
impl Forget for RuleHold
impl Freeze for RuleHold
impl Move for RuleHold
impl RefUnwindSafe for RuleHold
impl Send for RuleHoldwhere
RawVecInner: Send,
impl Sync for RuleHoldwhere
RawVecInner: Sync,
impl Unpin for RuleHold
impl UnsafeUnpin for RuleHold
impl UnwindSafe for RuleHoldwhere
RawVecInner: UnwindSafe,
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