Struct x11rb_protocol::protocol::screensaver::Event
source · pub struct Event(/* private fields */);
Implementations§
source§impl Event
impl Event
pub const NOTIFY_MASK: Self = _
pub const CYCLE_MASK: Self = _
source§impl Event
impl Event
sourcepub fn contains(self, flag: impl Into<u32>) -> bool
pub fn contains(self, flag: impl Into<u32>) -> 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.
sourcepub fn intersects(self, flag: impl Into<u32>) -> bool
pub fn intersects(self, flag: impl Into<u32>) -> 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.
Trait Implementations§
source§impl BitAndAssign<Event> for u32
impl BitAndAssign<Event> for u32
source§fn bitand_assign(&mut self, other: Event)
fn bitand_assign(&mut self, other: Event)
Performs the
&=
operation. Read moresource§impl BitAndAssign<u32> for Event
impl BitAndAssign<u32> for Event
source§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read moresource§impl BitAndAssign for Event
impl BitAndAssign for Event
source§fn bitand_assign(&mut self, other: Event)
fn bitand_assign(&mut self, other: Event)
Performs the
&=
operation. Read moresource§impl BitOrAssign<Event> for u32
impl BitOrAssign<Event> for u32
source§fn bitor_assign(&mut self, other: Event)
fn bitor_assign(&mut self, other: Event)
Performs the
|=
operation. Read moresource§impl BitOrAssign<u32> for Event
impl BitOrAssign<u32> for Event
source§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read moresource§impl BitOrAssign for Event
impl BitOrAssign for Event
source§fn bitor_assign(&mut self, other: Event)
fn bitor_assign(&mut self, other: Event)
Performs the
|=
operation. Read moresource§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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
source§impl Ord for Event
impl Ord for Event
source§impl PartialEq for Event
impl PartialEq for Event
source§impl PartialOrd for Event
impl PartialOrd for Event
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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