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

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

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)

Tuple Fields of Unknown

0: u8

Implementations

Returns whether this PDU type is a beacon advertisement.

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

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.