Enum x11rb::protocol::xinput::HierarchyChangeData
source · pub enum HierarchyChangeData {
AddMaster(HierarchyChangeDataAddMaster),
RemoveMaster(HierarchyChangeDataRemoveMaster),
AttachSlave(HierarchyChangeDataAttachSlave),
DetachSlave(HierarchyChangeDataDetachSlave),
InvalidValue(u16),
}
Variants§
AddMaster(HierarchyChangeDataAddMaster)
RemoveMaster(HierarchyChangeDataRemoveMaster)
AttachSlave(HierarchyChangeDataAttachSlave)
DetachSlave(HierarchyChangeDataDetachSlave)
InvalidValue(u16)
This variant is returned when the server sends a discriminant value that does not match any of the defined by the protocol.
Usually, this should be considered a parsing error, but there are some cases where the server violates the protocol.
Trying to use serialize
or serialize_into
with this variant
will raise a panic.
Implementations§
source§impl HierarchyChangeData
impl HierarchyChangeData
pub fn as_add_master(&self) -> Option<&HierarchyChangeDataAddMaster>
pub fn as_remove_master(&self) -> Option<&HierarchyChangeDataRemoveMaster>
pub fn as_attach_slave(&self) -> Option<&HierarchyChangeDataAttachSlave>
pub fn as_detach_slave(&self) -> Option<&HierarchyChangeDataDetachSlave>
Trait Implementations§
source§impl Clone for HierarchyChangeData
impl Clone for HierarchyChangeData
source§fn clone(&self) -> HierarchyChangeData
fn clone(&self) -> HierarchyChangeData
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 moreAuto Trait Implementations§
impl Freeze for HierarchyChangeData
impl RefUnwindSafe for HierarchyChangeData
impl Send for HierarchyChangeData
impl Sync for HierarchyChangeData
impl Unpin for HierarchyChangeData
impl UnwindSafe for HierarchyChangeData
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