pub struct Ieee(pub u64);Expand description
A 64-bit IEEE (EUI-64) address.
Shown and parsed most-significant byte first, as printed on labels and in
the open coordinator backup format: 00124b0001020304. Parsing also
accepts a 0x prefix and : separators. On the wire it is little-endian.
Tuple Fields§
§0: u64Implementations§
Source§impl Ieee
impl Ieee
Sourcepub fn from_le_bytes(bytes: [u8; 8]) -> Self
pub fn from_le_bytes(bytes: [u8; 8]) -> Self
From the 8 wire (little-endian) bytes.
Sourcepub fn to_le_bytes(self) -> [u8; 8]
pub fn to_le_bytes(self) -> [u8; 8]
The 8 wire (little-endian) bytes.
Sourcepub fn to_prefixed_hex(self) -> String
pub fn to_prefixed_hex(self) -> String
The address as 0x followed by 16 hex digits, the conventional
friendly name for a device that has none.
Trait Implementations§
impl Copy for Ieee
Source§impl<'de> Deserialize<'de> for Ieee
impl<'de> Deserialize<'de> for Ieee
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Ieee
Source§impl Ord for Ieee
impl Ord for Ieee
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Ieee
impl PartialOrd for Ieee
impl StructuralPartialEq for Ieee
Auto Trait Implementations§
impl Freeze for Ieee
impl RefUnwindSafe for Ieee
impl Send for Ieee
impl Sync for Ieee
impl Unpin for Ieee
impl UnsafeUnpin for Ieee
impl UnwindSafe for Ieee
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