pub struct NotifyFlags {
pub notify: bool,
pub pressure: bool,
}Expand description
The two notification settings, the only ones the guard applies live.
Fields§
§notify: boolguard.notify: send notifications at all.
pressure: boolguard.notify_pressure: also send the early warning.
Implementations§
Source§impl NotifyFlags
impl NotifyFlags
pub fn from_config(g: &GuardConfig) -> Self
Trait Implementations§
Source§impl Clone for NotifyFlags
impl Clone for NotifyFlags
impl Copy for NotifyFlags
Source§impl Debug for NotifyFlags
impl Debug for NotifyFlags
impl Eq for NotifyFlags
Source§impl PartialEq for NotifyFlags
impl PartialEq for NotifyFlags
impl StructuralPartialEq for NotifyFlags
Auto Trait Implementations§
impl Freeze for NotifyFlags
impl RefUnwindSafe for NotifyFlags
impl Send for NotifyFlags
impl Sync for NotifyFlags
impl Unpin for NotifyFlags
impl UnsafeUnpin for NotifyFlags
impl UnwindSafe for NotifyFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.