Enum mki::InhibitEvent
source · [−]pub enum InhibitEvent {
Yes,
Maybe(Arc<dyn Fn() -> InhibitEvent + Send + Sync>),
No,
}
Expand description
Works only on windows. Whether to propagate the event for applications down the callstack.
Variants
Yes
Maybe(Arc<dyn Fn() -> InhibitEvent + Send + Sync>)
No
Implementations
sourceimpl InhibitEvent
impl InhibitEvent
Trait Implementations
sourceimpl Clone for InhibitEvent
impl Clone for InhibitEvent
sourcefn clone(&self) -> InhibitEvent
fn clone(&self) -> InhibitEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl !RefUnwindSafe for InhibitEvent
impl Send for InhibitEvent
impl Sync for InhibitEvent
impl Unpin for InhibitEvent
impl !UnwindSafe for InhibitEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more