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 moresource§impl Debug for HierarchyChangeData
impl Debug for HierarchyChangeData
source§impl<'de> Deserialize<'de> for HierarchyChangeData
impl<'de> Deserialize<'de> for HierarchyChangeData
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 Hash for HierarchyChangeData
impl Hash for HierarchyChangeData
source§impl Ord for HierarchyChangeData
impl Ord for HierarchyChangeData
source§fn cmp(&self, other: &HierarchyChangeData) -> Ordering
fn cmp(&self, other: &HierarchyChangeData) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for HierarchyChangeData
impl PartialEq for HierarchyChangeData
source§fn eq(&self, other: &HierarchyChangeData) -> bool
fn eq(&self, other: &HierarchyChangeData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HierarchyChangeData
impl PartialOrd for HierarchyChangeData
source§fn partial_cmp(&self, other: &HierarchyChangeData) -> Option<Ordering>
fn partial_cmp(&self, other: &HierarchyChangeData) -> Option<Ordering>
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 moresource§impl Serialize for HierarchyChangeData
impl Serialize for HierarchyChangeData
impl Eq for HierarchyChangeData
impl StructuralPartialEq for HierarchyChangeData
Auto 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