[][src]Struct ieee802154::mac::frame::header::ExtendedAddress

pub struct ExtendedAddress(pub u64);

A 64-bit extended address

A unique address that is used to identify an device in the PAN.

Example

use ieee802154::mac::ExtendedAddress;

let ext_address = ExtendedAddress(0x0123456789abcdef);

Implementations

impl ExtendedAddress[src]

pub const BROADCAST: Self[src]

An instance of ExtendedAddress that represents the broadcast address.

pub fn broadcast() -> Self[src]

Creates an instance of ExtendedAddress that represents the broadcast address

pub fn decode(buf: &mut dyn Buf) -> Result<Self, DecodeError>[src]

Decodes an address from a byte buffer

pub fn encode(&self, buf: &mut dyn BufMut)[src]

Encodes the address into a buffer

Trait Implementations

impl Clone for ExtendedAddress[src]

impl Copy for ExtendedAddress[src]

impl Debug for ExtendedAddress[src]

impl Eq for ExtendedAddress[src]

impl Hash for ExtendedAddress[src]

impl Hash for ExtendedAddress[src]

impl PartialEq<ExtendedAddress> for ExtendedAddress[src]

impl StructuralEq for ExtendedAddress[src]

impl StructuralPartialEq for ExtendedAddress[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.