wlan_hw_sim::event::buffered

Trait TaggedVariant

Source
pub trait TaggedVariant<T>
where T: TaggedField,
{ const TAG: T::Tag; // Provided method fn has_tag(tag: impl Borrow<T::Tag>) -> bool { ... } }

Required Associated Constants§

Source

const TAG: T::Tag

Provided Methods§

Source

fn has_tag(tag: impl Borrow<T::Tag>) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl TaggedVariant<MacFrame> for DataFrame

Source§

const TAG: <MacFrame as TaggedField>::Tag = {transmute(0x02): <event::buffered::MacFrame as event::buffered::TaggedField>::Tag}

Source§

impl TaggedVariant<MacFrame> for MgmtFrame

Source§

const TAG: <MacFrame as TaggedField>::Tag = {transmute(0x00): <event::buffered::MacFrame as event::buffered::TaggedField>::Tag}

Source§

impl TaggedVariant<MgmtFrame> for ActionFrame<false>

Source§

const TAG: <MgmtFrame as TaggedField>::Tag = {transmute(0x0d): <event::buffered::MgmtFrame as event::buffered::TaggedField>::Tag}

Source§

impl TaggedVariant<MgmtFrame> for ActionFrame<true>

Source§

const TAG: <MgmtFrame as TaggedField>::Tag = {transmute(0x0e): <event::buffered::MgmtFrame as event::buffered::TaggedField>::Tag}

Source§

impl TaggedVariant<MgmtFrame> for AssocReqFrame

Source§

const TAG: <MgmtFrame as TaggedField>::Tag = {transmute(0x00): <event::buffered::MgmtFrame as event::buffered::TaggedField>::Tag}

Source§

impl TaggedVariant<MgmtFrame> for AssocRespFrame

Source§

const TAG: <MgmtFrame as TaggedField>::Tag = {transmute(0x01): <event::buffered::MgmtFrame as event::buffered::TaggedField>::Tag}

Source§

impl TaggedVariant<MgmtFrame> for AuthFrame

Source§

const TAG: <MgmtFrame as TaggedField>::Tag = {transmute(0x0b): <event::buffered::MgmtFrame as event::buffered::TaggedField>::Tag}

Source§

impl TaggedVariant<MgmtFrame> for ProbeReqFrame

Source§

const TAG: <MgmtFrame as TaggedField>::Tag = {transmute(0x04): <event::buffered::MgmtFrame as event::buffered::TaggedField>::Tag}