Skip to main content

Ipv6LinkLayerAddr

Trait Ipv6LinkLayerAddr 

Source
pub trait Ipv6LinkLayerAddr {
    // Required methods
    fn as_bytes(&self) -> &[u8] ;
    fn eui64_iid(&self) -> [u8; 8];
}
Expand description

A link-layer address that can be used to generate IPv6 addresses.

Required Methods§

Source

fn as_bytes(&self) -> &[u8]

Gets the address as a byte slice.

Source

fn eui64_iid(&self) -> [u8; 8]

Gets the device’s EUI-64 based interface identifier.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Ipv6LinkLayerAddr for Uninstantiable

Source§

fn as_bytes(&self) -> &[u8]

Source§

fn eui64_iid(&self) -> [u8; 8]

Implementors§