Enum rubble::link::State[][src]

enum State<C: Config> {
    Standby,
    Advertising {
        next_adv: Instant,
        interval: Duration,
        pdu: PduBuf,
        channel: AdvertisingChannel,
        data_queues: Option<(<<C as Config>::PacketQueue as PacketQueue>::Consumer, <<C as Config>::PacketQueue as PacketQueue>::Producer)>,
    },
    Connection(Connection<C>),
}
Expand description

Link-Layer state machine, according to the Bluetooth spec.

Variants

Standby

Radio silence: Not listening, not transmitting anything.

Advertising

Device is advertising and wants to establish a connection.

Fields of Advertising

next_adv: Instant

Advertising interval.

interval: Durationpdu: PduBuf

Precomputed PDU payload to copy into the transmitter’s buffer.

channel: AdvertisingChannel

Next advertising channel to use for a message.

data_queues: Option<(<<C as Config>::PacketQueue as PacketQueue>::Consumer, <<C as Config>::PacketQueue as PacketQueue>::Producer)>
Connection(Connection<C>)

Connected with another device.

Tuple Fields of Connection

0: Connection<C>

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.