Trait libwifi::Addresses[][src]

pub trait Addresses {
    fn src(&self) -> Option<&MacAddress>;
fn dest(&self) -> &MacAddress;
fn bssid(&self) -> Option<&MacAddress>; }

Required methods

fn src(&self) -> Option<&MacAddress>[src]

Returns the sender of the Frame. This isn’t always send in every frame (e.g. CTS).

fn dest(&self) -> &MacAddress[src]

fn bssid(&self) -> Option<&MacAddress>[src]

This isn’t always send in every frame (e.g. RTS).

Loading content...

Implementors

impl Addresses for Rts[src]

impl<T: HasHeader> Addresses for T[src]

fn src(&self) -> Option<&MacAddress>[src]

Return the mac address of the sender

fn dest(&self) -> &MacAddress[src]

Return the mac address of the receiver. A full ff:ff:.. usually indicates a undirected broadcast.

fn bssid(&self) -> Option<&MacAddress>[src]

The BSSID for this request. In most cases, this is expected to be present. The only time it’s not, is in a wireless distributed system (WDS).

Loading content...