Skip to main content

TaggedVariant

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 = mac::FrameType::DATA

Source§

impl TaggedVariant<MacFrame> for MgmtFrame

Source§

const TAG: <MacFrame as TaggedField>::Tag = mac::FrameType::MGMT

Source§

impl TaggedVariant<MgmtFrame> for ActionFrame<false>

Source§

const TAG: <MgmtFrame as TaggedField>::Tag = mac::MgmtSubtype::ACTION

Source§

impl TaggedVariant<MgmtFrame> for ActionFrame<true>

Source§

const TAG: <MgmtFrame as TaggedField>::Tag = mac::MgmtSubtype::ACTION_NO_ACK

Source§

impl TaggedVariant<MgmtFrame> for AssocReqFrame

Source§

const TAG: <MgmtFrame as TaggedField>::Tag = mac::MgmtSubtype::ASSOC_REQ

Source§

impl TaggedVariant<MgmtFrame> for AssocRespFrame

Source§

const TAG: <MgmtFrame as TaggedField>::Tag = mac::MgmtSubtype::ASSOC_RESP

Source§

impl TaggedVariant<MgmtFrame> for AuthFrame

Source§

const TAG: <MgmtFrame as TaggedField>::Tag = mac::MgmtSubtype::AUTH

Source§

impl TaggedVariant<MgmtFrame> for ProbeReqFrame

Source§

const TAG: <MgmtFrame as TaggedField>::Tag = mac::MgmtSubtype::PROBE_REQ