pub enum DeviceAddress {
IntValue(u8),
ArrayIntValue(Vec<u8>),
CharIntValue(String),
ArrayCharIntValue(Vec<String>),
StringValue(String),
UnknownOrdinal_(u64),
}
Variants§
IntValue(u8)
ArrayIntValue(Vec<u8>)
CharIntValue(String)
ArrayCharIntValue(Vec<String>)
StringValue(String)
UnknownOrdinal_(u64)
Trait Implementations§
Source§impl Clone for DeviceAddress
impl Clone for DeviceAddress
Source§fn clone(&self) -> DeviceAddress
fn clone(&self) -> DeviceAddress
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 DeviceAddress
impl Debug for DeviceAddress
Source§impl Encodable for DeviceAddress
impl Encodable for DeviceAddress
Source§type Encoded = WireDeviceAddress
type Encoded = WireDeviceAddress
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl EncodableOption for Box<DeviceAddress>
impl EncodableOption for Box<DeviceAddress>
Source§type EncodedOption = WireOptionalDeviceAddress
type EncodedOption = WireOptionalDeviceAddress
The wire type for the optional value.
Source§impl<___E> Encode<___E> for DeviceAddresswhere
___E: InternalHandleEncoder + ?Sized + Encoder,
impl<___E> Encode<___E> for DeviceAddresswhere
___E: InternalHandleEncoder + ?Sized + Encoder,
Source§impl<___E> EncodeOption<___E> for Box<DeviceAddress>where
___E: ?Sized,
DeviceAddress: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<DeviceAddress>where
___E: ?Sized,
DeviceAddress: Encode<___E>,
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl TakeFrom<WireDeviceAddress> for DeviceAddress
impl TakeFrom<WireDeviceAddress> for DeviceAddress
Source§fn take_from(from: &WireDeviceAddress) -> Self
fn take_from(from: &WireDeviceAddress) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for DeviceAddress
impl RefUnwindSafe for DeviceAddress
impl Send for DeviceAddress
impl Sync for DeviceAddress
impl Unpin for DeviceAddress
impl UnwindSafe for DeviceAddress
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