Struct NotifyMask
pub struct NotifyMask(/* private fields */);
Implementations§
§impl NotifyMask
impl NotifyMask
pub const SCREEN_CHANGE: NotifyMask = _
pub const CRTC_CHANGE: NotifyMask = _
pub const OUTPUT_CHANGE: NotifyMask = _
pub const OUTPUT_PROPERTY: NotifyMask = _
pub const PROVIDER_CHANGE: NotifyMask = _
pub const PROVIDER_PROPERTY: NotifyMask = _
pub const RESOURCE_CHANGE: NotifyMask = _
pub const LEASE: NotifyMask = _
§impl NotifyMask
impl NotifyMask
pub fn contains(self, flag: impl Into<u16>) -> bool
pub fn contains(self, flag: impl Into<u16>) -> bool
Check if this object has all bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
pub fn intersects(self, flag: impl Into<u16>) -> bool
pub fn intersects(self, flag: impl Into<u16>) -> bool
Check if this object has some bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
pub fn remove(self, flags: impl Into<u16>) -> NotifyMask
pub fn remove(self, flags: impl Into<u16>) -> NotifyMask
Remove some flags.
All bits that are set in the given flags are removed from the self
instance, if
they are present.
Trait Implementations§
§impl BitAnd<u16> for NotifyMask
impl BitAnd<u16> for NotifyMask
§impl BitAnd for NotifyMask
impl BitAnd for NotifyMask
§type Output = NotifyMask
type Output = NotifyMask
The resulting type after applying the
&
operator.§fn bitand(self, other: NotifyMask) -> <NotifyMask as BitAnd>::Output
fn bitand(self, other: NotifyMask) -> <NotifyMask as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u16> for NotifyMask
impl BitAndAssign<u16> for NotifyMask
§fn bitand_assign(&mut self, other: u16)
fn bitand_assign(&mut self, other: u16)
Performs the
&=
operation. Read more§impl BitAndAssign for NotifyMask
impl BitAndAssign for NotifyMask
§fn bitand_assign(&mut self, other: NotifyMask)
fn bitand_assign(&mut self, other: NotifyMask)
Performs the
&=
operation. Read more§impl BitOr<u16> for NotifyMask
impl BitOr<u16> for NotifyMask
§impl BitOr for NotifyMask
impl BitOr for NotifyMask
§type Output = NotifyMask
type Output = NotifyMask
The resulting type after applying the
|
operator.§fn bitor(self, other: NotifyMask) -> <NotifyMask as BitOr>::Output
fn bitor(self, other: NotifyMask) -> <NotifyMask as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u16> for NotifyMask
impl BitOrAssign<u16> for NotifyMask
§fn bitor_assign(&mut self, other: u16)
fn bitor_assign(&mut self, other: u16)
Performs the
|=
operation. Read more§impl BitOrAssign for NotifyMask
impl BitOrAssign for NotifyMask
§fn bitor_assign(&mut self, other: NotifyMask)
fn bitor_assign(&mut self, other: NotifyMask)
Performs the
|=
operation. Read more§impl Clone for NotifyMask
impl Clone for NotifyMask
§fn clone(&self) -> NotifyMask
fn clone(&self) -> NotifyMask
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for NotifyMask
impl Debug for NotifyMask
§impl Default for NotifyMask
impl Default for NotifyMask
§fn default() -> NotifyMask
fn default() -> NotifyMask
Returns the “default value” for a type. Read more
§impl From<u16> for NotifyMask
impl From<u16> for NotifyMask
§fn from(value: u16) -> NotifyMask
fn from(value: u16) -> NotifyMask
Converts to this type from the input type.
§impl From<u8> for NotifyMask
impl From<u8> for NotifyMask
§fn from(value: u8) -> NotifyMask
fn from(value: u8) -> NotifyMask
Converts to this type from the input type.
§impl Hash for NotifyMask
impl Hash for NotifyMask
§impl Ord for NotifyMask
impl Ord for NotifyMask
§impl PartialEq for NotifyMask
impl PartialEq for NotifyMask
§impl PartialOrd for NotifyMask
impl PartialOrd for NotifyMask
impl Copy for NotifyMask
impl Eq for NotifyMask
impl StructuralPartialEq for NotifyMask
Auto Trait Implementations§
impl Freeze for NotifyMask
impl RefUnwindSafe for NotifyMask
impl Send for NotifyMask
impl Sync for NotifyMask
impl Unpin for NotifyMask
impl UnwindSafe for NotifyMask
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)