[][src]Enum rubble::link::advertising::PduType

pub enum PduType {
    AdvInd,
    AdvDirectInd,
    AdvNonconnInd,
    AdvScanInd,
    ScanReq,
    ScanRsp,
    ConnectReq,
    Unknown(u8),
}

4-bit PDU type in Header.

For more details, see PduBuf.

Variants

AdvInd

Connectable undirected advertising event (ADV_IND).

AdvDirectInd

Connectable directed advertising event (ADV_DIRECT_IND).

AdvNonconnInd

Non-connectable undirected advertising event (ADV_NONCONN_IND).

AdvScanInd

Scannable undirected advertising event (ADV_SCAN_IND).

ScanReq

Scan request (SCAN_REQ).

Sent by device in Scanning State, received by device in Advertising State.

ScanRsp

Scan response (SCAN_RSP).

Sent by device in Advertising State, received by devicein Scanning State.

ConnectReq

Connect request (CONNECT_REQ).

Sent by device in Initiating State, received by device in Advertising State.

Unknown(u8)

Methods

impl PduType[src]

pub fn is_beacon(&self) -> bool[src]

Returns whether this PDU type is a beacon advertisement.

pub fn allows_adv_data(&self) -> bool[src]

Whether AD structures can follow the fixed data in a PDU of this type.

Trait Implementations

impl Debug for PduType[src]

impl PartialEq<PduType> for PduType[src]

impl Eq for PduType[src]

impl From<u8> for PduType[src]

impl From<PduType> for u8[src]

Auto Trait Implementations

impl Send for PduType

impl Sync for PduType

Blanket Implementations

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From for T[src]

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

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

The type returned in the event of a conversion error.

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

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

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

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