pub enum GetDevicePropertyItems {
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 GetDevicePropertyItems
impl Clone for GetDevicePropertyItems
source§fn clone(&self) -> GetDevicePropertyItems
fn clone(&self) -> GetDevicePropertyItems
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 GetDevicePropertyItems
impl Debug for GetDevicePropertyItems
source§impl<'de> Deserialize<'de> for GetDevicePropertyItems
impl<'de> Deserialize<'de> for GetDevicePropertyItems
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 GetDevicePropertyItems
impl Hash for GetDevicePropertyItems
source§impl Ord for GetDevicePropertyItems
impl Ord for GetDevicePropertyItems
source§fn cmp(&self, other: &GetDevicePropertyItems) -> Ordering
fn cmp(&self, other: &GetDevicePropertyItems) -> 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 GetDevicePropertyItems
impl PartialEq for GetDevicePropertyItems
source§fn eq(&self, other: &GetDevicePropertyItems) -> bool
fn eq(&self, other: &GetDevicePropertyItems) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for GetDevicePropertyItems
impl PartialOrd for GetDevicePropertyItems
source§fn partial_cmp(&self, other: &GetDevicePropertyItems) -> Option<Ordering>
fn partial_cmp(&self, other: &GetDevicePropertyItems) -> 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 GetDevicePropertyItems
impl Serialize for GetDevicePropertyItems
impl Eq for GetDevicePropertyItems
impl StructuralPartialEq for GetDevicePropertyItems
Auto Trait Implementations§
impl Freeze for GetDevicePropertyItems
impl RefUnwindSafe for GetDevicePropertyItems
impl Send for GetDevicePropertyItems
impl Sync for GetDevicePropertyItems
impl Unpin for GetDevicePropertyItems
impl UnwindSafe for GetDevicePropertyItems
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