pub enum PackageAddress {
Broadcast,
ManufacturerBroadcast(u16),
Device(UniqueIdentifier),
}
Variants§
Broadcast
Broadcast to all devices.
ManufacturerBroadcast(u16)
Broadcast to all devices from a specific manufacturer identified by the manufacturer id in the u16.
Device(UniqueIdentifier)
Send package to a specific device.
Implementations§
Trait Implementations§
Source§impl Clone for PackageAddress
impl Clone for PackageAddress
Source§fn clone(&self) -> PackageAddress
fn clone(&self) -> PackageAddress
Returns a duplicate 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 PackageAddress
impl Debug for PackageAddress
Source§impl Format for PackageAddresswhere
UniqueIdentifier: Format,
impl Format for PackageAddresswhere
UniqueIdentifier: Format,
Source§impl From<PackageAddress> for u64
impl From<PackageAddress> for u64
Source§fn from(value: PackageAddress) -> Self
fn from(value: PackageAddress) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PackageAddress
impl PartialEq for PackageAddress
Source§impl TryFrom<u64> for PackageAddress
impl TryFrom<u64> for PackageAddress
impl Copy for PackageAddress
impl Eq for PackageAddress
impl StructuralPartialEq for PackageAddress
Auto Trait Implementations§
impl Freeze for PackageAddress
impl RefUnwindSafe for PackageAddress
impl Send for PackageAddress
impl Sync for PackageAddress
impl Unpin for PackageAddress
impl UnwindSafe for PackageAddress
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