pub enum ChangeDevicePropertyAux {
Data8(Vec<u8>),
Data16(Vec<u16>),
Data32(Vec<u32>),
InvalidValue(u8),
}
Variants§
Data8(Vec<u8>)
Data16(Vec<u16>)
Data32(Vec<u32>)
InvalidValue(u8)
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§
Trait Implementations§
source§impl Clone for ChangeDevicePropertyAux
impl Clone for ChangeDevicePropertyAux
source§fn clone(&self) -> ChangeDevicePropertyAux
fn clone(&self) -> ChangeDevicePropertyAux
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 ChangeDevicePropertyAux
impl Debug for ChangeDevicePropertyAux
source§impl Hash for ChangeDevicePropertyAux
impl Hash for ChangeDevicePropertyAux
source§impl Ord for ChangeDevicePropertyAux
impl Ord for ChangeDevicePropertyAux
source§fn cmp(&self, other: &ChangeDevicePropertyAux) -> Ordering
fn cmp(&self, other: &ChangeDevicePropertyAux) -> 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<ChangeDevicePropertyAux> for ChangeDevicePropertyAux
impl PartialEq<ChangeDevicePropertyAux> for ChangeDevicePropertyAux
source§fn eq(&self, other: &ChangeDevicePropertyAux) -> bool
fn eq(&self, other: &ChangeDevicePropertyAux) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ChangeDevicePropertyAux> for ChangeDevicePropertyAux
impl PartialOrd<ChangeDevicePropertyAux> for ChangeDevicePropertyAux
source§fn partial_cmp(&self, other: &ChangeDevicePropertyAux) -> Option<Ordering>
fn partial_cmp(&self, other: &ChangeDevicePropertyAux) -> 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 moreimpl Eq for ChangeDevicePropertyAux
impl StructuralEq for ChangeDevicePropertyAux
impl StructuralPartialEq for ChangeDevicePropertyAux
Auto Trait Implementations§
impl RefUnwindSafe for ChangeDevicePropertyAux
impl Send for ChangeDevicePropertyAux
impl Sync for ChangeDevicePropertyAux
impl Unpin for ChangeDevicePropertyAux
impl UnwindSafe for ChangeDevicePropertyAux
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